Add ConsoleLog class and ILogBackend interface.
This commit is contained in:
parent
91ed7e36cd
commit
052290d0e9
7 changed files with 232 additions and 91 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue