|
Simple++
Powerfull and lightning fast C++ Library
|
#include <Log.h>
Public Member Functions | |
| Log (void) | |
| ~Log (void) | |
Public Member Functions inherited from SimpleLog | |
| SimpleLog () | |
| ~SimpleLog () | |
Static Public Member Functions | |
| static void | displayLog (const String &text) |
| Display a log message even if we are in debug build or not. More... | |
| static void | displayWarning (const String &text) |
| Display a warning message even if we are in debug build or not. More... | |
| static void | displayError (const String &text) |
| Display a error message even if we are in debug build or not. More... | |
| static void | startChrono () |
| Start the chrono, see stopChrono();. More... | |
| static void | stopChrono () |
| stop chrono, see displayChrono(); More... | |
| static void | displayChrono (const String &text="Elapsed Time") |
| Display the last chrono result computed with startChrono() and displayChrono();. More... | |
| static void | setErrorHandler (void(*errorHandlerFn)(const String &msg, MessageSeverity severity, const char *file, unsigned int line)) |
| Set the error handler to be called. More... | |
| static void | errorHandler (const String &, MessageSeverity severity=MessageSeverity::Error, const char *fileName="", unsigned int lineNumber=0) |
| static void | callErrorHandler (const String &message, MessageSeverity severity=MessageSeverity::Error, const char *fileName="", unsigned int lineNumber=0) |
Static Public Member Functions inherited from SimpleLog | |
| static std::ostream & | getOutStream () |
| retrieve the out stream (by default cout) More... | |
| static void | setOutStream (std::ostream *stream) |
| set the output stream More... | |
| static void | errorHandler (const char *message, MessageSeverity severity=MessageSeverity::Error, const char *fileName="", unsigned int lineNumber=0) |
| static void | callErrorHandler (const char *message, MessageSeverity severity=MessageSeverity::Error, const char *fileName="", unsigned int lineNumber=0) |
| static void | setConsoleColor (MessageColor color=MessageColor::White) |
Additional Inherited Members | |
Public Types inherited from SimpleLog | |
| enum | MessageSeverity : unsigned char { MessageSeverity::Error, MessageSeverity::Warning, MessageSeverity::Info } |
| enum | MessageColor : unsigned char { MessageColor::Red = 0xC, MessageColor::Yellow = 0xE, MessageColor::Green = 0xA, MessageColor::White = 0xF } |
Static Protected Member Functions inherited from SimpleLog | |
| static void | _printMessage (const char *message, const char *fileName, unsigned int lineNumber) |
Static Protected Attributes inherited from SimpleLog | |
| static void(* | mErrorHandlerFn )(const char *, MessageSeverity, const char *, unsigned int) = &SimpleLog::errorHandler |
| Log::Log | ( | void | ) |
| Log::~Log | ( | void | ) |
|
static |
|
static |
Display the last chrono result computed with startChrono() and displayChrono();.
| text | Text to display with the time result. |
|
static |
Display a error message even if we are in debug build or not.
| text | Text to display |
|
static |
Display a log message even if we are in debug build or not.
| text | Text to display |
|
static |
Display a warning message even if we are in debug build or not.
| text | Text to display |
|
static |
|
static |
Set the error handler to be called.
| msg | Message to be displayed |
|
static |
Start the chrono, see stopChrono();.
|
static |
stop chrono, see displayChrono();
1.8.11