Improved log readability.
This commit is contained in:
1 parent
2f47dd8bcf
commit
67342349d5
1 file changed
+4
-5
@@ -41,15 +41,14 @@ struct InitSysLog {
|
||||
|
||||
auto formatter() {
|
||||
return [] (LogMsg const&m) {
|
||||
return fmt::format("{}| {:<10} {:<8} | {} --- {}:{} tid:{} pid:{}",
|
||||
return fmt::format("{}|{:<8}|{:<4}|{:<15}|{:<4}|{:<35}| {} ",
|
||||
datetime::time_string(datetime::now()),
|
||||
m.subsystem_name,
|
||||
m.level_name,
|
||||
m.msg,
|
||||
boost::filesystem::path(m.file).filename().string() ,
|
||||
m.line,
|
||||
m.tid,
|
||||
os::process_id());
|
||||
os::process_id(),
|
||||
fmt::format("{}:{}",boost::filesystem::path(m.file).filename().string() , m.line),
|
||||
m.msg);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user