Skip to content

Commit

Permalink
feat: log plugin name and version by default
Browse files Browse the repository at this point in the history
  • Loading branch information
qudix committed May 16, 2024
1 parent 58863cb commit bfe8224
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions CommonLibF4/src/F4SE/API.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ namespace F4SE

if (a_log) {
log::init();
log::info("{} v{}", GetPluginName(), GetPluginVersion());
}

storage.messagingInterface = detail::QueryInterface<MessagingInterface>(a_intfc, LoadInterface::kMessaging);
Expand Down
2 changes: 0 additions & 2 deletions RTTIDump/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,6 @@ F4SE_PLUGIN_LOAD(const F4SE::LoadInterface* a_f4se)
{
F4SE::Init(a_f4se);

logger::info("{} v{}", F4SE::GetPluginName(), F4SE::GetPluginVersion());

auto messaging = F4SE::GetMessagingInterface();
messaging->RegisterListener(MessageHandler);

Expand Down

0 comments on commit bfe8224

Please sign in to comment.