0
0
Fork 0
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:
Jason Volk 2018-12-05 19:00:10 -08:00
parent 99001a4ea5
commit 3f939367c0
2 changed files with 20 additions and 0 deletions

View file

@ -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();

View file

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