mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
Logging to file directly. Win32 Services can't write to std::cout
This commit is contained in:
parent
e3ff849aa4
commit
0236879c26
2 changed files with 14 additions and 5 deletions
5
Log.h
5
Log.h
|
@ -12,10 +12,7 @@ struct LogMsg
|
|||
|
||||
LogMsg (std::ostream& o = std::cout): output (o) {};
|
||||
|
||||
void Process ()
|
||||
{
|
||||
output << s.str ();
|
||||
}
|
||||
void Process();
|
||||
};
|
||||
|
||||
extern i2p::util::MsgQueue<LogMsg> g_Log;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue