0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

modules/console: Add log base cmd w/ list of named loggers and status.

This commit is contained in:
Jason Volk 2018-04-23 16:11:30 -07:00
parent bb0659fd83
commit 9817a41c18

View file

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