1
0

Daemon support on Linux.

Added null console log listener, avoid printf() when stdout is closed.
This commit is contained in:
Anthony Birkett
2015-06-04 14:13:07 +01:00
committed by Anthony Birkett
parent c9ad1ecd3e
commit 9dac390247
7 changed files with 58 additions and 17 deletions

View File

@@ -16,7 +16,7 @@ int main(int argc, char ** argv)
{
// Initialize logging subsystem:
cLogger::InitiateMultithreading();
auto consoleLogListener = MakeConsoleListener();
auto consoleLogListener = MakeConsoleListener(false);
auto fileLogListener = new cFileListener();
cLogger::GetInstance().AttachListener(consoleLogListener);
cLogger::GetInstance().AttachListener(fileLogListener);