mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-07 07:55:04 -05:00
Add ConsoleLog class and ILogBackend interface.
This commit is contained in:
@@ -27,9 +27,10 @@
|
||||
|
||||
|
||||
#include "App.h"
|
||||
#include "log/Log.h"
|
||||
#include "Cpu.h"
|
||||
#include "crypto/CryptoNight.h"
|
||||
#include "log/ConsoleLog.h"
|
||||
#include "log/Log.h"
|
||||
#include "Mem.h"
|
||||
#include "net/Network.h"
|
||||
#include "Options.h"
|
||||
@@ -51,7 +52,11 @@ App::App(int argc, char **argv) :
|
||||
Cpu::init();
|
||||
m_options = Options::parse(argc, argv);
|
||||
|
||||
Log::init(m_options->colors(), m_options->background());
|
||||
Log::init();
|
||||
|
||||
if (!m_options->background()) {
|
||||
Log::add(new ConsoleLog(m_options->colors()));
|
||||
}
|
||||
|
||||
m_network = new Network(m_options);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user