mirror of
https://github.com/matrix-construct/construct
synced 2025-02-17 01:00:10 +01: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
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue