|
enum | Level {
kDebug,
kInfo,
kWarning,
kError,
kFatal
} |
|
enum | Type { kTypeNoLog,
kTypeConsole,
kTypeFile
} |
|
static ULogger::Level | eventLevel () |
|
static void | flush () |
|
static std::map< std::string, unsigned long > | getRegisteredThreads () |
|
static int | getTime (std::string &timeStr) |
|
static const std::set< unsigned long > & | getTreadIdFilter () |
|
static bool | isBuffered () |
|
static bool | isPrintColored () |
|
static bool | isPrintEndLine () |
|
static bool | isPrintLevel () |
|
static bool | isPrintThreadId () |
|
static bool | isPrintTime () |
|
static bool | isPrintWhere () |
|
static bool | isPrintWhereFullPath () |
|
static ULogger::Level | level () |
|
static void | registerCurrentThread (const std::string &name) |
|
static void | reset () |
|
static void | setBuffered (bool buffered) |
|
static void | setEventLevel (ULogger::Level eventSentLevel) |
|
static void | setLevel (ULogger::Level level) |
|
static void | setPrintColored (bool printColored) |
|
static void | setPrintEndline (bool printEndline) |
|
static void | setPrintLevel (bool printLevel) |
|
static void | setPrintThreadId (bool printThreadId) |
|
static void | setPrintTime (bool printTime) |
|
static void | setPrintWhere (bool printWhere) |
|
static void | setPrintWhereFullPath (bool printWhereFullPath) |
|
static void | setTreadIdFilter (const std::set< unsigned long > &ids) |
|
static void | setTreadIdFilter (const std::vector< std::string > &ids) |
|
static void | setType (Type type, const std::string &fileName=kDefaultLogFileName, bool append=true) |
|
static Type | type () |
|
static void | unregisterCurrentThread () |
|
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 the console. This class cannot be directly used, use ULogger::setType() to console type to print in console and use macro UDEBUG(), UINFO()... to print messages.
- See also
- ULogger
Definition at line 75 of file ULogger.cpp.