Minor improvements to logging.
This commit is contained in:
1 parent
d4445fe3e3
commit
2ebf337805
3 files changed
+18
-11
No files matched your search
@@ -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());
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user