mirror of https://github.com/PurpleI2P/i2pd.git
chertov
11 years ago
2 changed files with 14 additions and 5 deletions
@ -1,3 +1,15 @@
@@ -1,3 +1,15 @@
|
||||
#include "Log.h" |
||||
|
||||
#include "Daemon.h" |
||||
|
||||
i2p::util::MsgQueue<LogMsg> g_Log; |
||||
|
||||
void LogMsg::Process() |
||||
{ |
||||
if (Daemon.isLogging == 1 && Daemon.logfile.is_open()) |
||||
{ |
||||
Daemon.logfile << s.str(); |
||||
Daemon.logfile.flush(); |
||||
} |
||||
output << s.str(); |
||||
} |
Loading…
Reference in new issue