Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
rtflann::Logger Class Reference

#include <logger.h>

Static Public Member Functions

static int getLevel ()
 
static int log (int level, const char *fmt,...)
 
static void setDestination (const char *name)
 
static void setLevel (int level)
 

Private Member Functions

int _log (int level, const char *fmt, va_list arglist)
 
void _setDestination (const char *name)
 
 Logger ()
 
 ~Logger ()
 

Static Private Member Functions

static Loggerinstance ()
 

Private Attributes

int logLevel
 
FILE * stream
 

Detailed Description

Definition at line 71 of file logger.h.

Constructor & Destructor Documentation

◆ Logger()

rtflann::Logger::Logger ( )
inlineprivate

Definition at line 101 of file logger.h.

◆ ~Logger()

rtflann::Logger::~Logger ( )
inlineprivate

Definition at line 103 of file logger.h.

Member Function Documentation

◆ _log()

int rtflann::Logger::_log ( int  level,
const char *  fmt,
va_list  arglist 
)
inlineprivate

Definition at line 129 of file logger.h.

◆ _setDestination()

void rtflann::Logger::_setDestination ( const char *  name)
inlineprivate

Definition at line 116 of file logger.h.

◆ getLevel()

static int rtflann::Logger::getLevel ( )
inlinestatic

Returns the currently set logging level.

Returns
current logging level

Definition at line 147 of file logger.h.

◆ instance()

static Logger& rtflann::Logger::instance ( )
inlinestaticprivate

Definition at line 110 of file logger.h.

◆ log()

static int rtflann::Logger::log ( int  level,
const char *  fmt,
  ... 
)
inlinestatic

Print log message

Parameters
levelLog level
fmtMessage format
Returns

Definition at line 161 of file logger.h.

◆ setDestination()

static void rtflann::Logger::setDestination ( const char *  name)
inlinestatic

Sets the logging destination

Parameters
nameFilename or NULL for console

Definition at line 153 of file logger.h.

◆ setLevel()

static void rtflann::Logger::setLevel ( int  level)
inlinestatic

Sets the logging level. All messages with lower priority will be ignored.

Parameters
levelLogging level

Definition at line 141 of file logger.h.

Member Data Documentation

◆ logLevel

int rtflann::Logger::logLevel
private

Definition at line 188 of file logger.h.

◆ stream

FILE* rtflann::Logger::stream
private

Definition at line 187 of file logger.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:29