Logging: Remove customizable logging backends

Separate code for customizing logging backends from this branch
This commit is contained in:
Daniel Lim Wee Soong 2018-03-16 11:56:40 +08:00
parent eee388588e
commit 373efd3158
5 changed files with 12 additions and 208 deletions

View file

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