diff options
author | Lioncash <mathew1800@gmail.com> | 2021-04-14 20:19:52 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2021-04-14 23:10:58 -0400 |
commit | 64606aefcf2407513d3687a1f8d325653bde1f72 (patch) | |
tree | e6d171bdaf94d121809cf8f27a00f417bda39f06 /src/yuzu/main.cpp | |
parent | 8e7734bf40a6d6672a511aefdb21898c07f59039 (diff) |
common/log: Move Log namespace into the Common namespace
Forgot to move this over when I moved the rest of the source files with
lacking namespaces over.
Diffstat (limited to 'src/yuzu/main.cpp')
-rw-r--r-- | src/yuzu/main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 23ea4983d..1dfa111e2 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -171,12 +171,14 @@ void GMainWindow::ShowTelemetryCallout() { const int GMainWindow::max_recent_files_item; static void InitializeLogging() { + using namespace Common; + Log::Filter log_filter; log_filter.ParseFilterString(Settings::values.log_filter); Log::SetGlobalFilter(log_filter); - const std::string& log_dir = Common::FS::GetUserPath(Common::FS::UserPath::LogDir); - Common::FS::CreateFullPath(log_dir); + const std::string& log_dir = FS::GetUserPath(FS::UserPath::LogDir); + FS::CreateFullPath(log_dir); Log::AddBackend(std::make_unique<Log::FileBackend>(log_dir + LOG_FILE)); #ifdef _WIN32 Log::AddBackend(std::make_unique<Log::DebuggerBackend>()); |