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 43 of file logger.h.

Constructor & Destructor Documentation

◆ Logger()

rtflann::Logger::Logger ( )
inlineprivate

Definition at line 45 of file logger.h.

◆ ~Logger()

rtflann::Logger::~Logger ( )
inlineprivate

Definition at line 47 of file logger.h.

Member Function Documentation

◆ _log()

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

Definition at line 73 of file logger.h.

◆ _setDestination()

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

Definition at line 60 of file logger.h.

◆ getLevel()

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

Returns the currently set logging level.

Returns
current logging level

Definition at line 91 of file logger.h.

◆ instance()

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

Definition at line 54 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 105 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 97 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 85 of file logger.h.

Member Data Documentation

◆ logLevel

int rtflann::Logger::logLevel
private

Definition at line 132 of file logger.h.

◆ stream

FILE* rtflann::Logger::stream
private

Definition at line 131 of file logger.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Jan 23 2023 03:39:00