Minor improvements to logging.

This commit is contained in:
Pedro Pinto committed 2017-08-18 15:30:48 +00:00
1 parent d4445fe3e3
commit 2ebf337805
3 files changed
+18 -11

No files matched your search

+3 -3
View File
@@ -37,15 +37,15 @@ struct InitSysLog {
auto formatter() {
return [] (LogMsg const&m) {
return fmt::format("{} | {} {} {}:{} tid:{} pid:{} {}",
return fmt::format("{}: {} | {} {} {}:{} tid:{} pid:{}",
datetime::time_string(datetime::now()),
m.msg,
m.subsystem_name,
m.level_name,
boost::filesystem::path(m.file).filename().string() ,
m.line,
m.tid,
os::process_id(),
datetime::time_string(datetime::now()));
os::process_id());
};
}