mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-11-17 21:26:04 +00:00
21 lines
291 B
C++
21 lines
291 B
C++
#include "Log.h"
|
|
|
|
#include "Daemon.h"
|
|
|
|
Log g_Log;
|
|
|
|
void LogMsg::Process()
|
|
{
|
|
if (Daemon.isLogging == 1 && Daemon.logfile.is_open())
|
|
Daemon.logfile << s.str();
|
|
|
|
output << s.str();
|
|
}
|
|
|
|
void Log::Flush ()
|
|
{
|
|
if (Daemon.isLogging == 1 && Daemon.logfile.is_open())
|
|
Daemon.logfile.flush();
|
|
}
|
|
|