0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-02 18:18:56 +02:00

ircd::log: Show the ctx::epoch() in log output; tweak format.

This commit is contained in:
Jason Volk 2019-07-15 16:12:51 -07:00
parent 2bcfe14822
commit 8c7623ff99

View file

@ -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