mirror of
https://github.com/matrix-construct/construct
synced 2025-02-17 01:00:10 +01:00
ircd::log: Show the ctx::epoch() in log output; tweak format.
This commit is contained in:
parent
2bcfe14822
commit
8c7623ff99
1 changed files with 9 additions and 4 deletions
|
@ -525,15 +525,20 @@ noexcept
|
|||
<< (string_view{conf.console_ansi}? "\033[0m " : " ")
|
||||
// << (log.snote? log.snote : '-')
|
||||
<< std::setw(LOG_NAME_TRUNC)
|
||||
<< std::right
|
||||
<< std::left
|
||||
<< trunc(log.name, LOG_NAME_TRUNC)
|
||||
<< ' '
|
||||
<< std::setw(CTX_NAME_TRUNC)
|
||||
<< trunc(ctx::name(), CTX_NAME_TRUNC)
|
||||
<< ' '
|
||||
<< std::setw(5)
|
||||
<< std::right
|
||||
<< ctx::id()
|
||||
<< ' '
|
||||
<< 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