Prettier logging.
This commit is contained in:
1 parent
0e6f37d6ee
commit
a066e44da7
1 file changed
+4
-2
@@ -41,8 +41,10 @@ struct InitSysLog {
|
||||
|
||||
auto formatter() {
|
||||
return [] (LogMsg const&m) {
|
||||
return fmt::format("{}|{:<8}|{:<5}|{:<3}|{:<16}|{:<4}|{:<35}| {} ",
|
||||
datetime::time_string(datetime::now()),
|
||||
auto now = datetime::local_now();
|
||||
return fmt::format("{} {}|{:<8}|{:<5}|{:<3}|{:<16}|{:<4}|{:<35}| {} ",
|
||||
datetime::date_string(now),
|
||||
datetime::time_string(now),
|
||||
m.subsystem_name,
|
||||
m.level_name,
|
||||
m.tid,
|
||||
|
||||
Reference in new issue
Block a user