summaryrefslogtreecommitdiff
path: root/src/yuzu_cmd/yuzu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/yuzu_cmd/yuzu.cpp')
-rw-r--r--src/yuzu_cmd/yuzu.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp
index 079f93736..89a3e9f30 100644
--- a/src/yuzu_cmd/yuzu.cpp
+++ b/src/yuzu_cmd/yuzu.cpp
@@ -126,7 +126,12 @@ int main(int argc, char** argv) {
126#endif 126#endif
127 127
128 Log::Filter log_filter(Log::Level::Debug); 128 Log::Filter log_filter(Log::Level::Debug);
129 Log::SetFilter(&log_filter); 129 Log::SetGlobalFilter(log_filter);
130
131 Log::AddBackend(std::make_unique<Log::ColorConsoleBackend>());
132 FileUtil::CreateFullPath(FileUtil::GetUserPath(D_LOGS_IDX));
133 Log::AddBackend(
134 std::make_unique<Log::FileBackend>(FileUtil::GetUserPath(D_LOGS_IDX) + LOG_FILE));
130 135
131 MicroProfileOnThreadCreate("EmuThread"); 136 MicroProfileOnThreadCreate("EmuThread");
132 SCOPE_EXIT({ MicroProfileShutdown(); }); 137 SCOPE_EXIT({ MicroProfileShutdown(); });