mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-05 15:11:13 +00:00
20 lines
291 B
C++
20 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();
|
|
}
|
|
|