Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
rtflann::Logger Class Reference

#include <logger.h>

List of all members.

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

rtflann::Logger::Logger ( ) [inline, private]

Definition at line 45 of file logger.h.

rtflann::Logger::~Logger ( ) [inline, private]

Definition at line 47 of file logger.h.


Member Function Documentation

int rtflann::Logger::_log ( int  level,
const char *  fmt,
va_list  arglist 
) [inline, private]

Definition at line 73 of file logger.h.

void rtflann::Logger::_setDestination ( const char *  name) [inline, private]

Definition at line 60 of file logger.h.

static int rtflann::Logger::getLevel ( ) [inline, static]

Returns the currently set logging level.

Returns:
current logging level

Definition at line 91 of file logger.h.

static Logger& rtflann::Logger::instance ( ) [inline, static, private]

Definition at line 54 of file logger.h.

static int rtflann::Logger::log ( int  level,
const char *  fmt,
  ... 
) [inline, static]

Print log message

Parameters:
levelLog level
fmtMessage format
Returns:

Definition at line 105 of file logger.h.

static void rtflann::Logger::setDestination ( const char *  name) [inline, static]

Sets the logging destination

Parameters:
nameFilename or NULL for console

Definition at line 97 of file logger.h.

static void rtflann::Logger::setLevel ( int  level) [inline, static]

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

Definition at line 132 of file logger.h.

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 Sat Jul 23 2016 11:44:32