diff options
author | James Rowe <jroweboy@gmail.com> | 2018-07-02 19:10:41 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-07-03 03:45:47 +0200 |
commit | 6269a01b4e9963ffdaf98ddf5d5f2a90d49e58ff (patch) | |
tree | c69305f1bca02461e4af8dc20f0b47601f276fc0 /src/yuzu_cmd | |
parent | Update clang format (diff) | |
download | yuzu-6269a01b4e9963ffdaf98ddf5d5f2a90d49e58ff.tar yuzu-6269a01b4e9963ffdaf98ddf5d5f2a90d49e58ff.tar.gz yuzu-6269a01b4e9963ffdaf98ddf5d5f2a90d49e58ff.tar.bz2 yuzu-6269a01b4e9963ffdaf98ddf5d5f2a90d49e58ff.tar.lz yuzu-6269a01b4e9963ffdaf98ddf5d5f2a90d49e58ff.tar.xz yuzu-6269a01b4e9963ffdaf98ddf5d5f2a90d49e58ff.tar.zst yuzu-6269a01b4e9963ffdaf98ddf5d5f2a90d49e58ff.zip |
Diffstat (limited to '')
-rw-r--r-- | src/yuzu_cmd/yuzu.cpp | 7 |
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) { #endif Log::Filter log_filter(Log::Level::Debug); - Log::SetFilter(&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)); MicroProfileOnThreadCreate("EmuThread"); SCOPE_EXIT({ MicroProfileShutdown(); }); |