#include <LogHelper.hpp>
Public Member Functions | |
LogHelper (path logFilePath, LogLevel level) | |
Static Public Member Functions | |
static void | close () |
static void | displayProgress (double progress) |
static LogHelperPtr | getInstance () |
static void | init (path logFilePath, LogLevel level) |
static void | logLine (LogLevel logLevel=LOG_INFO) |
static void | logMessage (const std::string &message, LogLevel logLevel=LOG_INFO, const char *logColor=LOG_COLOR_DEFAULT) |
Static Public Attributes | |
static const char * | LOG_COLOR_BLUE = "\033[34;1m" |
static const char * | LOG_COLOR_DEFAULT = "\033[0m" |
static const char * | LOG_COLOR_GREEN = "\033[32m" |
static const char * | LOG_COLOR_MAGENTA = "\033[35m" |
static const char * | LOG_COLOR_RED = "\033[31m" |
static const char * | LOG_COLOR_YELLOW = "\033[33m" |
Private Member Functions | |
std::string | getLogLevelString (LogLevel level) |
std::string | getTimeString () |
void | log (const std::string &message, LogLevel logLevel=LOG_INFO, const char *logColor=LOG_COLOR_DEFAULT) |
LogHelper (const LogHelper &) | |
LogHelper & | operator= (const LogHelper &) |
Private Attributes | |
std::ofstream | mLogFile |
LogLevel | mLogLevel |
Static Private Attributes | |
static unsigned int | mBarWidth = 70 |
static LogHelperPtr | mInstance = NULL |
Definition at line 37 of file LogHelper.hpp.
ISM::LogHelper::LogHelper | ( | path | logFilePath, |
LogLevel | level | ||
) |
Definition at line 40 of file LogHelper.cpp.
|
private |
|
static |
Definition at line 116 of file LogHelper.cpp.
|
static |
Definition at line 147 of file LogHelper.cpp.
|
static |
Definition at line 122 of file LogHelper.cpp.
|
private |
Definition at line 133 of file LogHelper.cpp.
|
private |
Definition at line 139 of file LogHelper.cpp.
|
static |
Definition at line 106 of file LogHelper.cpp.
|
private |
Definition at line 60 of file LogHelper.cpp.
Definition at line 101 of file LogHelper.cpp.
|
static |
Definition at line 96 of file LogHelper.cpp.
|
static |
Definition at line 44 of file LogHelper.hpp.
|
static |
Definition at line 43 of file LogHelper.hpp.
|
static |
Definition at line 46 of file LogHelper.hpp.
|
static |
Definition at line 48 of file LogHelper.hpp.
|
static |
Definition at line 45 of file LogHelper.hpp.
|
static |
Definition at line 47 of file LogHelper.hpp.
|
staticprivate |
Definition at line 64 of file LogHelper.hpp.
|
staticprivate |
Definition at line 59 of file LogHelper.hpp.
|
private |
Definition at line 61 of file LogHelper.hpp.
|
private |
Definition at line 62 of file LogHelper.hpp.