0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-28 14:58:20 +02:00

ircd::log: Tweak log format.

This commit is contained in:
Jason Volk 2019-07-16 12:16:43 -07:00
parent 339e43c004
commit ad7c6980ac

View file

@ -516,7 +516,12 @@ noexcept
// Compose the prefix sequence into the buffer through stringstream
std::stringstream s;
pubsetbuf(s, buf);
s << microtime(date)
s
<< microtime(date)
<< ' '
<< std::setw(5)
<< std::right
<< ctx::epoch()
<< ' '
<< string_view{conf.console_ansi}
<< std::setw(8)
@ -535,10 +540,6 @@ noexcept
<< std::setw(CTX_NAME_TRUNC)
<< std::left
<< trunc(ctx::name(), CTX_NAME_TRUNC)
<< ' '
<< std::setw(5)
<< std::right
<< ctx::epoch()
<< " :";
// Compose the user message after prefix