nestlog: + time-of-day column

This commit is contained in:
Roland Conybeare 2023-09-15 16:30:34 -04:00
commit ad36c16d91
5 changed files with 420 additions and 4 deletions

View file

@ -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)...);