blob: 856af419149b9d3e4e9ccd90ae6154861e7c8023 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// Needed to bootstrap plugin abi
#include "plugin.h"
#include "internal/logging.h"
extern "C" __declspec(dllexport)
void PLUGIN_INIT(PluginInitFuncs* funcs, PluginNorthstarData* data)
{
spdlog::default_logger()->sinks().pop_back();
spdlog::default_logger()->sinks().push_back(std::make_shared<PluginSink>(funcs->logger));
spdlog::info(PLUGIN_NAME " succesfully initialised!");
}
|