#include <NLogSinkInterface.h>
◆ NLogSinkInterface()
NLogSinkInterface::NLogSinkInterface |
( |
| ) |
|
|
inline |
◆ ~NLogSinkInterface()
virtual NLogSinkInterface::~NLogSinkInterface |
( |
| ) |
|
|
inlinevirtual |
◆ flush()
virtual void NLogSinkInterface::flush |
( |
| ) |
|
|
pure virtual |
◆ getLevel()
NLogLevel NLogSinkInterface::getLevel |
( |
| ) |
const |
|
inline |
Get the logging level boundary
- Returns
- NLogLevel
◆ log()
virtual void NLogSinkInterface::log |
( |
NLogLevel |
level, |
|
|
const std::string & |
message, |
|
|
const char * |
func = nullptr |
|
) |
| |
|
pure virtual |
Output log message
- Parameters
-
level | the level of log message |
message | the log message string |
func | the function name from which log message comes. Usually has class name e.g. NDefaultClient::onResponse |
Implemented in NConsoleLogSink.
◆ setLevel()
void NLogSinkInterface::setLevel |
( |
NLogLevel |
level | ) |
|
|
inline |
Set the logging level boundary
- Parameters
-
level | the logging level boundary |
◆ _level
The documentation for this class was generated from the following file: