Log service provider interface.
More...
#include <logserviceprovider.h>
|
virtual | ~LogServiceProvider () |
|
virtual void | log (LogLevel level, const char *fmt,...) __attribute__((format(printf |
|
virtual void virtual void | vlog (LogLevel level, const char *fmt, va_list ap)=0 |
|
virtual void | log (LogLevel level, const Strings &strings)=0 |
|
template<typename Function > |
void | logfn (LogLevel level, Function fn) |
|
template<typename Function > |
void | logfn (LogLevel level, Function fn, const char *fmt, va_list ap) |
|
template<typename Function > |
void | logfn (LogLevel level, Function fn, const char *fmt,...) __attribute__((format(printf |
|
Log service provider interface.
Definition at line 59 of file logserviceprovider.h.
◆ anonymous enum
◆ ~LogServiceProvider()
virtual EMANE::LogServiceProvider::~LogServiceProvider |
( |
| ) |
|
|
inlinevirtual |
◆ LogServiceProvider()
EMANE::LogServiceProvider::LogServiceProvider |
( |
| ) |
|
|
inlineprotected |
◆ isLogAllowed()
virtual bool EMANE::LogServiceProvider::isLogAllowed |
( |
LogLevel |
level | ) |
const |
|
protectedpure virtual |
◆ log() [1/2]
virtual void EMANE::LogServiceProvider::log |
( |
LogLevel |
level, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
|
virtual |
Output a log message
- Parameters
-
level | Log level of the message |
fmt | format string (see printf) |
... | Variable data (see printf) |
Reimplemented in EMANE::LogService.
◆ log() [2/2]
virtual void EMANE::LogServiceProvider::log |
( |
LogLevel |
level, |
|
|
const Strings & |
strings |
|
) |
| |
|
pure virtual |
Output a log message
- Parameters
-
level | Log level of the message |
strings | Strings to output |
Implemented in EMANE::LogService.
◆ log_i()
virtual void EMANE::LogServiceProvider::log_i |
( |
LogLevel |
level, |
|
|
const Strings & |
strings |
|
) |
| |
|
protectedpure virtual |
◆ logfn() [1/3]
template<typename Function >
void EMANE::LogServiceProvider::logfn |
( |
LogLevel |
level, |
|
|
Function |
fn |
|
) |
| |
Output a log message using a callable
- Parameters
-
level | Log level of the message |
fn | Callable returning Strings |
Definition at line 36 of file logserviceprovider.inl.
◆ logfn() [2/3]
template<typename Function >
void EMANE::LogServiceProvider::logfn |
( |
LogLevel |
level, |
|
|
Function |
fn, |
|
|
const char * |
fmt, |
|
|
va_list |
ap |
|
) |
| |
Output a log message using a callable
- Parameters
-
level | Log level of the message |
fn | Callable returning Strings |
fmt | format string (see printf) |
ap | Variable argument list data (see vprintf) |
Definition at line 46 of file logserviceprovider.inl.
◆ logfn() [3/3]
template<typename Function >
void EMANE::LogServiceProvider::logfn |
( |
LogLevel |
level, |
|
|
Function |
fn, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
Output a log message using a callable
- Parameters
-
level | Log level of the message |
fn | Callable returning Strings |
fmt | format string (see printf) |
Definition at line 64 of file logserviceprovider.inl.
◆ vlog()
virtual void virtual void EMANE::LogServiceProvider::vlog |
( |
LogLevel |
level, |
|
|
const char * |
fmt, |
|
|
va_list |
ap |
|
) |
| |
|
pure virtual |
Output a log message
- Parameters
-
level | Log level of the message |
fmt | format string (see printf) |
ap | Variable argument list data (see vprintf) |
Implemented in EMANE::LogService.
The documentation for this class was generated from the following files: