1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-25 05:40:39 -05:00

Log subsystem rewritten, to handle both color and not color logs simultaneously and overall simplicity.

This commit is contained in:
XMRig
2019-03-26 19:56:35 +07:00
parent 0a893c2172
commit ced25c3fa0
22 changed files with 489 additions and 559 deletions

View File

@@ -26,11 +26,11 @@
#include <assert.h>
#include "base/io/log/backends/ConsoleLog.h"
#include "base/io/log/backends/FileLog.h"
#include "common/config/ConfigLoader.h"
#include "common/cpu/Cpu.h"
#include "common/interfaces/IControllerListener.h"
#include "common/log/ConsoleLog.h"
#include "common/log/FileLog.h"
#include "common/log/Log.h"
#include "common/Platform.h"
#include "core/Config.h"
@@ -39,7 +39,7 @@
#ifdef HAVE_SYSLOG_H
# include "common/log/SysLog.h"
# include "base/io/log/backends/SysLog.h"
#endif
@@ -102,7 +102,6 @@ int xmrig::Controller::init()
return 1;
}
Log::init();
Platform::init(config()->userAgent());
Platform::setProcessPriority(d_ptr->config->priority());