mirror of
https://github.com/matrix-construct/construct
synced 2024-09-29 20:28:52 +02:00
ircd::log: Tweak log format.
This commit is contained in:
parent
339e43c004
commit
ad7c6980ac
1 changed files with 25 additions and 24 deletions
|
@ -516,7 +516,12 @@ noexcept
|
||||||
// Compose the prefix sequence into the buffer through stringstream
|
// Compose the prefix sequence into the buffer through stringstream
|
||||||
std::stringstream s;
|
std::stringstream s;
|
||||||
pubsetbuf(s, buf);
|
pubsetbuf(s, buf);
|
||||||
s << microtime(date)
|
s
|
||||||
|
<< microtime(date)
|
||||||
|
<< ' '
|
||||||
|
<< std::setw(5)
|
||||||
|
<< std::right
|
||||||
|
<< ctx::epoch()
|
||||||
<< ' '
|
<< ' '
|
||||||
<< string_view{conf.console_ansi}
|
<< string_view{conf.console_ansi}
|
||||||
<< std::setw(8)
|
<< std::setw(8)
|
||||||
|
@ -535,10 +540,6 @@ noexcept
|
||||||
<< std::setw(CTX_NAME_TRUNC)
|
<< std::setw(CTX_NAME_TRUNC)
|
||||||
<< std::left
|
<< std::left
|
||||||
<< trunc(ctx::name(), CTX_NAME_TRUNC)
|
<< trunc(ctx::name(), CTX_NAME_TRUNC)
|
||||||
<< ' '
|
|
||||||
<< std::setw(5)
|
|
||||||
<< std::right
|
|
||||||
<< ctx::epoch()
|
|
||||||
<< " :";
|
<< " :";
|
||||||
|
|
||||||
// Compose the user message after prefix
|
// Compose the user message after prefix
|
||||||
|
|
Loading…
Reference in a new issue