From 4e9746877e35a5a015063b3fe81fbd6d1f1cfc1a Mon Sep 17 00:00:00 2001 From: nakeee Date: Mon, 2 Mar 2009 01:49:16 +0000 Subject: an attempt to clean up the logging a bit 1) The new ERROR, WARN, INFO, DEBUG _LOG macros were used ERROR, // Bad errors - that still don't deserve a PanicAlert. WARNING, // Something is suspicious. INFO, // General information. DEBUG, // Strictly for detailed debugging - might make things slow. 2) Made all LOG macro use into some of the logging level supporting macros LOG is commented out on linux can someone try it on windows? (it's in Log.h) 3) Added ERROR_lOG next to each panic alert I hope I helped making the logs a bit more useful/readble git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2510 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/MsgHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/Common/Src/MsgHandler.cpp') diff --git a/Source/Core/Common/Src/MsgHandler.cpp b/Source/Core/Common/Src/MsgHandler.cpp index ad7256875c..155d77fd11 100644 --- a/Source/Core/Common/Src/MsgHandler.cpp +++ b/Source/Core/Common/Src/MsgHandler.cpp @@ -53,7 +53,7 @@ bool MsgAlert(const char* caption, bool yes_no, int Style, const char* format, . CharArrayFromFormatV(buffer, 2047, format, args); va_end(args); - LOG(MASTER_LOG, "%s: %s", caption, buffer); + ERROR_LOG(MASTER_LOG, "%s: %s", caption, buffer); // ----------- if (msg_handler) { -- cgit v1.2.3