Logger.
More...
#include <NLogger.h>
|
static void | initWithConsoleSink (NLogLevel level=NLogLevel::Info) |
|
static void | init (NLogSinkPtr sink, NLogLevel level=NLogLevel::Info) |
|
static NLogSinkPtr | getSink () |
|
static void | setSink (NLogSinkPtr sink) |
|
static void | setLevel (NLogLevel level) |
|
static void | Debug (const std::string &message, const char *module_name, const char *func=nullptr) |
|
static void | Info (const std::string &message, const char *module_name, const char *func=nullptr) |
|
static void | Warn (const std::string &message, const char *module_name, const char *func=nullptr) |
|
static void | Error (const std::string &message, const char *module_name, const char *func=nullptr) |
|
static void | Fatal (const std::string &message, const char *module_name, const char *func=nullptr) |
|
static void | Log (NLogLevel level, const std::string &message, const char *module_name, const char *func=nullptr) |
|
static void | Format (NLogLevel level, const char *module_name, const char *func, const char *format,...) |
|
static void | vFormat (NLogLevel level, const char *module_name, const char *func, const char *format, va_list args) |
|
static void | Error (const NError &error, const char *module_name, const char *func=nullptr) |
|
static void | Error (const NRtError &error, const char *module_name, const char *func=nullptr) |
|
◆ Debug()
static void NLogger::Debug |
( |
const std::string & |
message, |
|
|
const char * |
module_name, |
|
|
const char * |
func = nullptr |
|
) |
| |
|
static |
◆ Error() [1/3]
static void NLogger::Error |
( |
const NError & |
error, |
|
|
const char * |
module_name, |
|
|
const char * |
func = nullptr |
|
) |
| |
|
static |
◆ Error() [2/3]
static void NLogger::Error |
( |
const NRtError & |
error, |
|
|
const char * |
module_name, |
|
|
const char * |
func = nullptr |
|
) |
| |
|
static |
◆ Error() [3/3]
static void NLogger::Error |
( |
const std::string & |
message, |
|
|
const char * |
module_name, |
|
|
const char * |
func = nullptr |
|
) |
| |
|
static |
◆ Fatal()
static void NLogger::Fatal |
( |
const std::string & |
message, |
|
|
const char * |
module_name, |
|
|
const char * |
func = nullptr |
|
) |
| |
|
static |
◆ Format()
static void NLogger::Format |
( |
NLogLevel |
level, |
|
|
const char * |
module_name, |
|
|
const char * |
func, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
|
static |
◆ getSink()
◆ Info()
static void NLogger::Info |
( |
const std::string & |
message, |
|
|
const char * |
module_name, |
|
|
const char * |
func = nullptr |
|
) |
| |
|
static |
◆ init()
Initialize logger with custom log sink
- Parameters
-
sink | custom log sink |
level | logging boundary |
◆ initWithConsoleSink()
◆ Log()
static void NLogger::Log |
( |
NLogLevel |
level, |
|
|
const std::string & |
message, |
|
|
const char * |
module_name, |
|
|
const char * |
func = nullptr |
|
) |
| |
|
static |
◆ setLevel()
static void NLogger::setLevel |
( |
NLogLevel |
level | ) |
|
|
static |
◆ setSink()
◆ vFormat()
static void NLogger::vFormat |
( |
NLogLevel |
level, |
|
|
const char * |
module_name, |
|
|
const char * |
func, |
|
|
const char * |
format, |
|
|
va_list |
args |
|
) |
| |
|
static |
◆ Warn()
static void NLogger::Warn |
( |
const std::string & |
message, |
|
|
const char * |
module_name, |
|
|
const char * |
func = nullptr |
|
) |
| |
|
static |
The documentation for this class was generated from the following file: