An instance of the EMANE logger. Provides methods for logger configuration and logging.
More...
#include <logger.h>
An instance of the EMANE logger. Provides methods for logger configuration and logging.
Definition at line 51 of file logger.h.
◆ Logger()
EMANE::Application::Logger::Logger |
( |
| ) |
|
◆ ~Logger()
EMANE::Application::Logger::~Logger |
( |
| ) |
|
◆ log()
void EMANE::Application::Logger::log |
( |
LogLevel |
level, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
Output a log message
- Parameters
-
level | Log level of the message |
fmt | format string (see printf) |
... | Variable data (see printf) |
Definition at line 47 of file logger.cc.
◆ open()
void EMANE::Application::Logger::open |
( |
| ) |
|
open the logger backend
Definition at line 71 of file logger.cc.
◆ redirectLogsToFile()
void EMANE::Application::Logger::redirectLogsToFile |
( |
const char * |
filename | ) |
|
Redirect logging to file
- Parameters
-
filename | the name of the destination file |
Definition at line 64 of file logger.cc.
◆ setLogLevel()
void EMANE::Application::Logger::setLogLevel |
( |
const LogLevel |
level | ) |
|
Set Log Level
- Parameters
-
level | highest logging level |
Definition at line 57 of file logger.cc.
The documentation for this class was generated from the following files: