Console Color Logger. More...
#include <deLoggerConsoleColor.h>
Public Types | |
| enum | eTextAttributes { etaDefault, etaBright, etaDim, etaUnderline, etaBlink } |
Text attributes. More... | |
| enum | eTextColors { etcBlack, etcRed, etcGreen, etcYellow, etcBlue, etcMagenta, etcCyan, etcWhite } |
Text colors. More... | |
Public Member Functions | |
Constructors and Destructors | |
| deLoggerConsoleColor () | |
| Creates a new console color logger. | |
| virtual | ~deLoggerConsoleColor () |
| Cleans up the console color logger. | |
Management | |
| int | GetInfoAttribute () const |
| Retrieves the info text attribute. | |
| void | SetInfoAttribute (int attribute) |
| Sets the info text attribute. | |
| int | GetInfoColorForeground () const |
| Retrieves the info text foreground color. | |
| void | SetInfoColorForeground (int color) |
| Sets the info text foreground color. | |
| int | GetInfoColorBackground () const |
| Retrieves the info text background color. | |
| void | SetInfoColorBackground (int color) |
| Sets the info text background color. | |
| int | GetWarnAttribute () const |
| Retrieves the warn text attribute. | |
| void | SetWarnAttribute (int attribute) |
| Sets the warn text attribute. | |
| int | GetWarnColorForeground () const |
| Retrieves the warn text foreground color. | |
| void | SetWarnColorForeground (int color) |
| Sets the warn text foreground color. | |
| int | GetWarnColorBackground () const |
| Retrieves the warn text background color. | |
| void | SetWarnColorBackground (int color) |
| Sets the warn text background color. | |
| int | GetErrorAttribute () const |
| Retrieves the error text attribute. | |
| void | SetErrorAttribute (int attribute) |
| Sets the error text attribute. | |
| int | GetErrorColorForeground () const |
| Retrieves the error text foreground color. | |
| void | SetErrorColorForeground (int color) |
| Sets the error text foreground color. | |
| int | GetErrorColorBackground () const |
| Retrieves the error text background color. | |
| void | SetErrorColorBackground (int color) |
| Sets the error text background color. | |
| virtual void | LogInfo (const char *source, const char *message) |
| Log an information message. | |
| virtual void | LogInfoFormat (const char *source, const char *message,...) |
| Log a formated information message. | |
| virtual void | LogInfoFormatUsing (const char *source, const char *message, va_list args) |
| Log a formated information message. | |
| virtual void | LogWarn (const char *source, const char *message) |
| Log a warning message. | |
| virtual void | LogWarnFormat (const char *source, const char *message,...) |
| Log a formated warning message. | |
| virtual void | LogWarnFormatUsing (const char *source, const char *message, va_list args) |
| Log a formated warning message. | |
| virtual void | LogError (const char *source, const char *message) |
| Log an error message. | |
| virtual void | LogErrorFormat (const char *source, const char *message,...) |
| Log a formated error message. | |
| virtual void | LogErrorFormatUsing (const char *source, const char *message, va_list args) |
| Log a formated error message. | |
| virtual void | LogException (const char *source, const duException &exception) |
| Log an exception as error message. | |
Console Color Logger.
Provides logging support for the entire engine. Writes the log entries to the console. Supports using text attributes and text color codes for marking info, warning and error log entries.
| deLoggerConsoleColor::deLoggerConsoleColor | ( | ) |
Creates a new console color logger.
| virtual deLoggerConsoleColor::~deLoggerConsoleColor | ( | ) | [virtual] |
Cleans up the console color logger.
| int deLoggerConsoleColor::GetErrorAttribute | ( | ) | const [inline] |
Retrieves the error text attribute.
| int deLoggerConsoleColor::GetErrorColorBackground | ( | ) | const [inline] |
Retrieves the error text background color.
| int deLoggerConsoleColor::GetErrorColorForeground | ( | ) | const [inline] |
Retrieves the error text foreground color.
| int deLoggerConsoleColor::GetInfoAttribute | ( | ) | const [inline] |
Retrieves the info text attribute.
| int deLoggerConsoleColor::GetInfoColorBackground | ( | ) | const [inline] |
Retrieves the info text background color.
| int deLoggerConsoleColor::GetInfoColorForeground | ( | ) | const [inline] |
Retrieves the info text foreground color.
| int deLoggerConsoleColor::GetWarnAttribute | ( | ) | const [inline] |
Retrieves the warn text attribute.
| int deLoggerConsoleColor::GetWarnColorBackground | ( | ) | const [inline] |
Retrieves the warn text background color.
| int deLoggerConsoleColor::GetWarnColorForeground | ( | ) | const [inline] |
Retrieves the warn text foreground color.
| virtual void deLoggerConsoleColor::LogError | ( | const char * | source, |
| const char * | message | ||
| ) | [virtual] |
Log an error message.
Reimplemented from deLogger.
| virtual void deLoggerConsoleColor::LogErrorFormat | ( | const char * | source, |
| const char * | message, | ||
| ... | |||
| ) | [virtual] |
Log a formated error message.
Reimplemented from deLogger.
| virtual void deLoggerConsoleColor::LogErrorFormatUsing | ( | const char * | source, |
| const char * | message, | ||
| va_list | args | ||
| ) | [virtual] |
Log a formated error message.
Reimplemented from deLogger.
| virtual void deLoggerConsoleColor::LogException | ( | const char * | source, |
| const duException & | exception | ||
| ) | [virtual] |
Log an exception as error message.
Reimplemented from deLogger.
| virtual void deLoggerConsoleColor::LogInfo | ( | const char * | source, |
| const char * | message | ||
| ) | [virtual] |
Log an information message.
Reimplemented from deLogger.
| virtual void deLoggerConsoleColor::LogInfoFormat | ( | const char * | source, |
| const char * | message, | ||
| ... | |||
| ) | [virtual] |
Log a formated information message.
Reimplemented from deLogger.
| virtual void deLoggerConsoleColor::LogInfoFormatUsing | ( | const char * | source, |
| const char * | message, | ||
| va_list | args | ||
| ) | [virtual] |
Log a formated information message.
Reimplemented from deLogger.
| virtual void deLoggerConsoleColor::LogWarn | ( | const char * | source, |
| const char * | message | ||
| ) | [virtual] |
Log a warning message.
Reimplemented from deLogger.
| virtual void deLoggerConsoleColor::LogWarnFormat | ( | const char * | source, |
| const char * | message, | ||
| ... | |||
| ) | [virtual] |
Log a formated warning message.
Reimplemented from deLogger.
| virtual void deLoggerConsoleColor::LogWarnFormatUsing | ( | const char * | source, |
| const char * | message, | ||
| va_list | args | ||
| ) | [virtual] |
Log a formated warning message.
Reimplemented from deLogger.
| void deLoggerConsoleColor::SetErrorAttribute | ( | int | attribute ) |
Sets the error text attribute.
| void deLoggerConsoleColor::SetErrorColorBackground | ( | int | color ) |
Sets the error text background color.
| void deLoggerConsoleColor::SetErrorColorForeground | ( | int | color ) |
Sets the error text foreground color.
| void deLoggerConsoleColor::SetInfoAttribute | ( | int | attribute ) |
Sets the info text attribute.
| void deLoggerConsoleColor::SetInfoColorBackground | ( | int | color ) |
Sets the info text background color.
| void deLoggerConsoleColor::SetInfoColorForeground | ( | int | color ) |
Sets the info text foreground color.
| void deLoggerConsoleColor::SetWarnAttribute | ( | int | attribute ) |
Sets the warn text attribute.
| void deLoggerConsoleColor::SetWarnColorBackground | ( | int | color ) |
Sets the warn text background color.
| void deLoggerConsoleColor::SetWarnColorForeground | ( | int | color ) |
Sets the warn text foreground color.
1.7.2