mirror of
https://github.com/matrix-construct/construct
synced 2024-11-16 15:00:51 +01:00
modules/console: Add log base cmd w/ list of named loggers and status.
This commit is contained in:
parent
bb0659fd83
commit
9817a41c18
1 changed files with 14 additions and 0 deletions
|
@ -369,6 +369,20 @@ console_cmd__debug(opt &out, const string_view &line)
|
|||
// log
|
||||
//
|
||||
|
||||
bool
|
||||
console_cmd__log(opt &out, const string_view &line)
|
||||
{
|
||||
for(const auto *const &log : log::log::list)
|
||||
out << (log->snote? log->snote : '-')
|
||||
<< " " << std::setw(8) << std::left << log->name
|
||||
<< " "
|
||||
<< (log->fmasked? " FILE" : "")
|
||||
<< (log->cmasked? " CONSOLE" : "")
|
||||
<< std::endl;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
console_cmd__log__level(opt &out, const string_view &line)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue