Logging: Remove customizable logging backends
Separate code for customizing logging backends from this branch
This commit is contained in:
parent
eee388588e
commit
373efd3158
5 changed files with 12 additions and 208 deletions
|
@ -239,12 +239,7 @@ int main(int argc, char** argv) {
|
|||
|
||||
Log::Filter log_filter;
|
||||
log_filter.ParseFilterString(Settings::values.log_filter);
|
||||
Log::SetGlobalFilter(log_filter);
|
||||
|
||||
Log::AddBackend(std::make_unique<Log::ColorConsoleBackend>());
|
||||
FileUtil::CreateFullPath(FileUtil::GetUserPath(D_LOGS_IDX));
|
||||
Log::AddBackend(
|
||||
std::make_unique<Log::FileBackend>(FileUtil::GetUserPath(D_LOGS_IDX) + LOG_FILE));
|
||||
Log::SetFilter(&log_filter);
|
||||
|
||||
// Apply the command line arguments
|
||||
Settings::values.gdbstub_port = gdb_port;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue