2016-05-30 16:37:03 +00:00
|
|
|
#include "shared.hpp"
|
|
|
|
#include "logging.hpp"
|
|
|
|
#include "dynloader.hpp"
|
|
|
|
|
|
|
|
INITIALIZE_EASYLOGGINGPP
|
|
|
|
|
|
|
|
BOOLEAN WINAPI DllMain(IN HINSTANCE hDllHandle,
|
|
|
|
IN DWORD nReason,
|
|
|
|
IN LPVOID Reserved) {
|
|
|
|
BOOLEAN bSuccess = TRUE;
|
|
|
|
el::Configurations conf;
|
|
|
|
|
|
|
|
switch (nReason) {
|
|
|
|
case DLL_PROCESS_ATTACH:
|
|
|
|
conf.setGlobally(el::ConfigurationType::Filename, "logs/ace_dynload.log");
|
|
|
|
el::Loggers::setDefaultConfigurations(conf, true);
|
|
|
|
|
|
|
|
conf.set(
|
|
|
|
el::Level::Global,
|
|
|
|
el::ConfigurationType::Filename,
|
|
|
|
"logs/server_events.log");
|
|
|
|
|
|
|
|
// Register functions
|
|
|
|
ace::dynloader::get().register_functions();
|
|
|
|
|
|
|
|
break;
|
|
|
|
case DLL_PROCESS_DETACH:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return bSuccess;
|
|
|
|
|
2015-05-13 15:34:14 +00:00
|
|
|
}
|