mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Changed log file format: print timestamp instead of thread ID
This commit is contained in:
@@ -356,7 +356,7 @@
|
|||||||
"properties" : {
|
"properties" : {
|
||||||
"format" : {
|
"format" : {
|
||||||
"type" : "string",
|
"type" : "string",
|
||||||
"default" : "%l %n [%t] - %m"
|
"default" : "[%c] %l %n - %m"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -295,6 +295,7 @@ std::string CLogFormatter::format(const LogRecord & record) const
|
|||||||
boost::algorithm::replace_first(message, "%n", record.domain.getName());
|
boost::algorithm::replace_first(message, "%n", record.domain.getName());
|
||||||
boost::algorithm::replace_first(message, "%t", record.threadId);
|
boost::algorithm::replace_first(message, "%t", record.threadId);
|
||||||
boost::algorithm::replace_first(message, "%m", record.message);
|
boost::algorithm::replace_first(message, "%m", record.message);
|
||||||
|
boost::algorithm::replace_first(message, "%c", boost::posix_time::to_simple_string(record.timeStamp));
|
||||||
|
|
||||||
//return boost::to_string (boost::format("%d %d %d[%d] - %d") % dateStream.str() % level % record.domain.getName() % record.threadId % record.message);
|
//return boost::to_string (boost::format("%d %d %d[%d] - %d") % dateStream.str() % level % record.domain.getName() % record.threadId % record.message);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user