nestlog: + time-of-day column
This commit is contained in:
parent
5a47539dbb
commit
ad36c16d91
5 changed files with 420 additions and 4 deletions
|
|
@ -118,6 +118,11 @@ namespace xo {
|
|||
} else {
|
||||
state_impl_type * logstate = require_indent_thread_local_state();
|
||||
|
||||
/* indent for timestamp */
|
||||
if (log_config::time_enabled)
|
||||
logstate->ss() << pad(13, ' ');
|
||||
//logstate->indent(' ');
|
||||
|
||||
/* log to per-thread stream to prevent data races */
|
||||
tosn(logstate2stream(logstate), std::forward<Tn>(rest)...);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue