mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-17 12:51:49 +02:00
Adding timestamp to logger.
This commit is contained in:
parent
68ade60004
commit
05fa6757ce
4 changed files with 10 additions and 8 deletions
2
Log.cpp
2
Log.cpp
|
@ -1,9 +1,11 @@
|
|||
#include "Log.h"
|
||||
#include <boost/date_time/posix_time/posix_time.hpp>
|
||||
|
||||
Log * g_Log = nullptr;
|
||||
|
||||
void LogMsg::Process()
|
||||
{
|
||||
output << boost::posix_time::second_clock::local_time() << " - ";
|
||||
output << s.str();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue