mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
Implement logs::silence
Disables all log channels. Also disables unsupported "default" log level for log channels.
This commit is contained in:
parent
67075dfc6c
commit
d5f019c3d3
2 changed files with 14 additions and 1 deletions
|
@ -173,6 +173,16 @@ namespace logs
|
|||
}
|
||||
}
|
||||
|
||||
void silence()
|
||||
{
|
||||
std::lock_guard lock(g_mutex);
|
||||
|
||||
for (auto&& pair : get_logger()->channels)
|
||||
{
|
||||
pair.second->enabled = level::always;
|
||||
}
|
||||
}
|
||||
|
||||
void set_level(const std::string& ch_name, level value)
|
||||
{
|
||||
std::lock_guard lock(g_mutex);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue