* Fixed log levels.

--HG--
branch : trunk
This commit is contained in:
XTZGZoReX
2009-03-21 11:51:38 +01:00
parent 4413bfb548
commit 79d27da9ec
4 changed files with 6 additions and 7 deletions
+2 -2
View File
@@ -418,7 +418,7 @@ void Log::outError( const char * err, ... )
} }
if(m_colored) if(m_colored)
SetColor(false,m_colors[LOGL_ERROR]); SetColor(false,RED);
UTF8PRINTF(stderr,err,); UTF8PRINTF(stderr,err,);
@@ -458,7 +458,7 @@ void Log::outErrorDb( const char * err, ... )
} }
if(m_colored) if(m_colored)
SetColor(false,m_colors[LOGL_ERROR]); SetColor(false,RED);
UTF8PRINTF(stderr,err,); UTF8PRINTF(stderr,err,);
-1
View File
@@ -54,7 +54,6 @@ enum LogTypes
enum LogLevel enum LogLevel
{ {
LOGL_NORMAL = 0, LOGL_NORMAL = 0,
LOGL_ERROR,
LOGL_BASIC, LOGL_BASIC,
LOGL_DETAIL, LOGL_DETAIL,
LOGL_DEBUG LOGL_DEBUG
+2 -2
View File
@@ -289,11 +289,11 @@ AddonChannel = 1
# "" - Empty name for disable # "" - Empty name for disable
# #
# LogColors # LogColors
# Color for messages (format "normal error basic detail debug") # Color for messages (format "normal basic detail debug")
# Colors: 0 - BLACK, 1 - RED, 2 - GREEN, 3 - BROWN, 4 - BLUE, 5 - MAGENTA, 6 - CYAN, 7 - GREY, # Colors: 0 - BLACK, 1 - RED, 2 - GREEN, 3 - BROWN, 4 - BLUE, 5 - MAGENTA, 6 - CYAN, 7 - GREY,
# 8 - YELLOW, 9 - LRED, 10 - LGREEN, 11 - LBLUE, 12 - LMAGENTA, 13 - LCYAN, 14 - WHITE # 8 - YELLOW, 9 - LRED, 10 - LGREEN, 11 - LBLUE, 12 - LMAGENTA, 13 - LCYAN, 14 - WHITE
# Default: "" - none colors # Default: "" - none colors
# Example: "13 7 11 9 5" # Example: "13 11 9 5"
# #
# EnableLogDB # EnableLogDB
# Enable/disable logging to database (LogDatabaseInfo). # Enable/disable logging to database (LogDatabaseInfo).
+2 -2
View File
@@ -55,11 +55,11 @@ ConfVersion=2007062001
# Default: 0 # Default: 0
# #
# LogColors # LogColors
# Color for messages (format "normal error basic detail debug") # Color for messages (format "normal basic detail debug")
# Colors: 0 - BLACK, 1 - RED, 2 - GREEN, 3 - BROWN, 4 - BLUE, 5 - MAGENTA, 6 - CYAN, 7 - GREY, # Colors: 0 - BLACK, 1 - RED, 2 - GREEN, 3 - BROWN, 4 - BLUE, 5 - MAGENTA, 6 - CYAN, 7 - GREY,
# 8 - YELLOW, 9 - LRED, 10 - LGREEN, 11 - LBLUE, 12 - LMAGENTA, 13 - LCYAN, 14 - WHITE # 8 - YELLOW, 9 - LRED, 10 - LGREEN, 11 - LBLUE, 12 - LMAGENTA, 13 - LCYAN, 14 - WHITE
# Default: "" - none colors # Default: "" - none colors
# Example: "13 7 11 9 5" # Example: "13 11 9 5"
# #
# EnableLogDB # EnableLogDB
# Enable/disable logging to database (LogDatabaseInfo). # Enable/disable logging to database (LogDatabaseInfo).