Public Member Functions | Protected Member Functions | Private Member Functions | Friends | List of all members
UConsoleLogger Class Reference
Inheritance diagram for UConsoleLogger:
Inheritance graph
[legend]

Public Member Functions

virtual ~UConsoleLogger ()
 

Protected Member Functions

 UConsoleLogger ()
 
- Protected Member Functions inherited from ULogger
void _flush ()
 
 ULogger ()
 
virtual ~ULogger ()
 

Private Member Functions

virtual void _write (const char *msg, va_list arg)
 
virtual void _writeStr (const char *msg)
 

Friends

class ULogger
 

Additional Inherited Members

- Public Types inherited from ULogger
enum  Level {
  kDebug, kInfo, kWarning, kError,
  kFatal
}
 
enum  Type { kTypeNoLog, kTypeConsole, kTypeFile }
 
- Static Public Member Functions inherited from ULogger
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 Public Attributes inherited from ULogger
static const std::string kDefaultLogFileName = "./ULog.txt"
 
- Static Protected Member Functions inherited from ULogger
static ULoggergetInstance ()
 
- Static Protected Attributes inherited from ULogger
static bool append_ = true
 
static std::string logFileName_
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~UConsoleLogger()

virtual UConsoleLogger::~UConsoleLogger ( )
inlinevirtual

Definition at line 78 of file ULogger.cpp.

◆ UConsoleLogger()

UConsoleLogger::UConsoleLogger ( )
inlineprotected

Definition at line 87 of file ULogger.cpp.

Member Function Documentation

◆ _write()

virtual void UConsoleLogger::_write ( const char *  msg,
va_list  arg 
)
inlineprivatevirtual

Reimplemented from ULogger.

Definition at line 90 of file ULogger.cpp.

◆ _writeStr()

virtual void UConsoleLogger::_writeStr ( const char *  msg)
inlineprivatevirtual

Reimplemented from ULogger.

Definition at line 94 of file ULogger.cpp.

Friends And Related Function Documentation

◆ ULogger

friend class ULogger
friend

Only the Logger can create inherited loggers according to the Abstract factory patterns.

Definition at line 85 of file ULogger.cpp.


The documentation for this class was generated from the following file:


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Jan 23 2023 03:38:59