#include <logger.h>
Definition at line 71 of file logger.h.
◆ Logger()
rtflann::Logger::Logger |
( |
| ) |
|
|
inlineprivate |
◆ ~Logger()
rtflann::Logger::~Logger |
( |
| ) |
|
|
inlineprivate |
◆ _log()
int rtflann::Logger::_log |
( |
int |
level, |
|
|
const char * |
fmt, |
|
|
va_list |
arglist |
|
) |
| |
|
inlineprivate |
◆ _setDestination()
void rtflann::Logger::_setDestination |
( |
const char * |
name | ) |
|
|
inlineprivate |
◆ 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 |
◆ log()
static int rtflann::Logger::log |
( |
int |
level, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
|
inlinestatic |
Print log message
- Parameters
-
level | Log level |
fmt | Message 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
-
name | Filename 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
-
Definition at line 141 of file logger.h.
◆ logLevel
int rtflann::Logger::logLevel |
|
private |
◆ stream
FILE* rtflann::Logger::stream |
|
private |
The documentation for this class was generated from the following file: