Improved log readability.

This commit is contained in:
Pedro Pinto committed 2017-12-29 15:58:53 -05:00
1 parent 2f47dd8bcf
commit 67342349d5
1 file changed
+4 -5
+4 -5
View File
@@ -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);
};
}