mirror of
https://github.com/PabloMK7/citra.git
synced 2025-09-10 12:50:04 +00:00
Merge pull request #6638 from GPUCode/new-log
common: Backport yuzu log improvements
This commit is contained in:
commit
4ccd9f24fb
48 changed files with 1201 additions and 750 deletions
|
@ -150,15 +150,8 @@ static void SaveBanList(const Network::Room::BanList& ban_list, const std::strin
|
|||
}
|
||||
|
||||
static void InitializeLogging(const std::string& log_file) {
|
||||
Log::AddBackend(std::make_unique<Log::ColorConsoleBackend>());
|
||||
|
||||
const std::string& log_dir = FileUtil::GetUserPath(FileUtil::UserPath::LogDir);
|
||||
FileUtil::CreateFullPath(log_dir);
|
||||
Log::AddBackend(std::make_unique<Log::FileBackend>(log_dir + log_file));
|
||||
|
||||
#ifdef _WIN32
|
||||
Log::AddBackend(std::make_unique<Log::DebuggerBackend>());
|
||||
#endif
|
||||
Common::Log::Initialize(log_file);
|
||||
Common::Log::SetColorConsoleBackendEnabled(true);
|
||||
}
|
||||
|
||||
/// Application entry point
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue