1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-10 16:37:54 +00:00
i2pd/Log.cpp

21 lines
291 B
C++
Raw Normal View History

2013-12-10 13:00:13 +00:00
#include "Log.h"
#include "Daemon.h"
2014-04-23 16:49:02 +00:00
Log g_Log;
void LogMsg::Process()
{
if (Daemon.isLogging == 1 && Daemon.logfile.is_open())
Daemon.logfile << s.str();
2014-04-23 16:49:02 +00:00
output << s.str();
2014-04-23 16:49:02 +00:00
}
void Log::Flush ()
{
if (Daemon.isLogging == 1 && Daemon.logfile.is_open())
Daemon.logfile.flush();
}