|
enum | Level {
kDebug,
kInfo,
kWarning,
kError,
kFatal
} |
|
enum | Type { kTypeNoLog,
kTypeConsole,
kTypeFile
} |
|
static ULogger::Level | eventLevel () |
|
static ULogger::Level | exitLevel () |
|
static void | flush () |
|
static int | getTime (std::string &timeStr) |
|
static bool | isBuffered () |
|
static bool | isPrintColored () |
|
static bool | isPrintEndLine () |
|
static bool | isPrintLevel () |
|
static bool | isPrintTime () |
|
static bool | isPrintWhere () |
|
static bool | isPrintWhereFullPath () |
|
static ULogger::Level | level () |
|
static void | reset () |
|
static void | setBuffered (bool buffered) |
|
static void | setEventLevel (ULogger::Level eventSentLevel) |
|
static void | setExitLevel (ULogger::Level exitLevel) |
|
static void | setLevel (ULogger::Level level) |
|
static void | setPrintColored (bool printColored) |
|
static void | setPrintEndline (bool printEndline) |
|
static void | setPrintLevel (bool printLevel) |
|
static void | setPrintTime (bool printTime) |
|
static void | setPrintWhere (bool printWhere) |
|
static void | setPrintWhereFullPath (bool printWhereFullPath) |
|
static void | setType (Type type, const std::string &fileName=kDefaultLogFileName, bool append=true) |
|
static Type | type () |
|
static void | write (const char *msg,...) |
|
static void | write (ULogger::Level level, const char *file, int line, const char *function, const char *msg,...) |
|
static const std::string | kDefaultLogFileName = "./ULog.txt" |
|
static ULogger * | getInstance () |
|
static bool | append_ = true |
|
static std::string | logFileName_ |
|
This class is used to write logs in a file. This class cannot be directly used, use ULogger::setType() to file type to print in a file and use macro UDEBUG(), UINFO()... to print messages.
- See also
- ULogger
Definition at line 105 of file ULogger.cpp.