mirror of
https://github.com/matrix-construct/construct
synced 2025-02-18 01:30:12 +01:00
ircd::log: Add console_enable/disable for all facilities.
This commit is contained in:
parent
99001a4ea5
commit
3f939367c0
2 changed files with 20 additions and 0 deletions
|
@ -56,6 +56,8 @@ namespace ircd::log
|
|||
bool console_enabled(const facility &);
|
||||
void console_disable(const facility &);
|
||||
void console_enable(const facility &);
|
||||
void console_disable();
|
||||
void console_enable();
|
||||
|
||||
void flush();
|
||||
void close();
|
||||
|
|
|
@ -164,6 +164,24 @@ catch(const std::exception &e)
|
|||
throw;
|
||||
}
|
||||
|
||||
void
|
||||
ircd::log::console_enable()
|
||||
{
|
||||
for_each<facility>([](const facility &fac)
|
||||
{
|
||||
console_enable(fac);
|
||||
});
|
||||
}
|
||||
|
||||
void
|
||||
ircd::log::console_disable()
|
||||
{
|
||||
for_each<facility>([](const facility &fac)
|
||||
{
|
||||
console_disable(fac);
|
||||
});
|
||||
}
|
||||
|
||||
void
|
||||
ircd::log::console_enable(const facility &fac)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue