Leosac
0.7.0
OpenSourceAccessControl
|
#include <cassert>
#include <csignal>
#include <iostream>
#include <spdlog/spdlog.h>
#include <sstream>
#include <string>
Go to the source code of this file.
Namespaces | |
LogHelper | |
Macros | |
#define | FUNCTION_NAME_MACRO __FUNCTION__ |
Macro used to get the name of the function that called the logging macro. More... | |
#define | BUILD_STR(param) |
Internal macro. More... | |
#define | DEBUG_0(msg) |
See "Internal macros documentation". More... | |
#define | DEBUG_1(msg, loggers) |
See "Internal macros documentation". More... | |
#define | DEBUG_X(trash, msg, loggers, targetMacro, ...) targetMacro |
See "Internal macros documentation". More... | |
#define | DEBUG(...) |
Debug macro. More... | |
#define | INFO_0(msg) |
See "Internal macros documentation". More... | |
#define | INFO_1(msg, loggers) |
See "Internal macros documentation". More... | |
#define | INFO_X(trash, msg, loggers, targetMacro, ...) targetMacro |
See "Internal macros documentation". More... | |
#define | INFO(...) |
Information macro. More... | |
#define | NOTICE_0(msg) |
See "Internal macros documentation". More... | |
#define | NOTICE_1(msg, loggers) |
See "Internal macros documentation". More... | |
#define | NOTICE_X(trash, msg, loggers, targetMacro, ...) targetMacro |
See "Internal macros documentation". More... | |
#define | NOTICE(...) |
Notice macro. More... | |
#define | WARN_0(msg) |
See "Internal macros documentation". More... | |
#define | WARN_1(msg, loggers) |
See "Internal macros documentation". More... | |
#define | WARN_X(trash, msg, loggers, targetMacro, ...) targetMacro |
See "Internal macros documentation". More... | |
#define | WARN(...) |
Warning macro. More... | |
#define | ERROR_0(msg) |
See "Internal macros documentation". More... | |
#define | ERROR_1(msg, loggers) |
See "Internal macros documentation". More... | |
#define | ERROR_X(trash, msg, loggers, targetMacro, ...) targetMacro |
See "Internal macros documentation". More... | |
#define | ERROR(...) |
Error macro. More... | |
#define | ASSERT_LOG(cond, msg) |
Enumerations | |
enum | LogLevel { EMERG = spdlog::level::emerg, ALERT = spdlog::level::alert, CRIT = spdlog::level::critical, ERROR = spdlog::level::err, WARN = spdlog::level::warn, NOTICE = spdlog::level::notice, INFO = spdlog::level::info, DEBUG = spdlog::level::debug } |
Functions | |
LogLevel | LogHelper::log_level_from_string (const std::string &level) |
void | LogHelper::log (const std::string &log_msg, int, const char *, const char *, LogLevel level) |
#define ASSERT_LOG | ( | cond, | |
msg | |||
) |
#define BUILD_STR | ( | param | ) |
#define DEBUG | ( | ... | ) |
Debug macro.
Issue a log message with DEBUG level
#define DEBUG_0 | ( | msg | ) |
See "Internal macros documentation".
#define DEBUG_1 | ( | msg, | |
loggers | |||
) |
See "Internal macros documentation".
#define DEBUG_X | ( | trash, | |
msg, | |||
loggers, | |||
targetMacro, | |||
... | |||
) | targetMacro |
#define ERROR | ( | ... | ) |
Error macro.
Issue a log message with ERROR level
#define ERROR_0 | ( | msg | ) |
See "Internal macros documentation".
#define ERROR_1 | ( | msg, | |
loggers | |||
) |
See "Internal macros documentation".
#define ERROR_X | ( | trash, | |
msg, | |||
loggers, | |||
targetMacro, | |||
... | |||
) | targetMacro |
#define FUNCTION_NAME_MACRO __FUNCTION__ |
#define INFO | ( | ... | ) |
Information macro.
Issue a log message with INFO level.
#define INFO_0 | ( | msg | ) |
See "Internal macros documentation".
#define INFO_1 | ( | msg, | |
loggers | |||
) |
See "Internal macros documentation".
#define INFO_X | ( | trash, | |
msg, | |||
loggers, | |||
targetMacro, | |||
... | |||
) | targetMacro |
#define NOTICE | ( | ... | ) |
Notice macro.
Issue a log message with NOTICE level.
#define NOTICE_0 | ( | msg | ) |
See "Internal macros documentation".
#define NOTICE_1 | ( | msg, | |
loggers | |||
) |
See "Internal macros documentation".
#define NOTICE_X | ( | trash, | |
msg, | |||
loggers, | |||
targetMacro, | |||
... | |||
) | targetMacro |
#define WARN | ( | ... | ) |
Warning macro.
Issue a log message with WARN level.
#define WARN_0 | ( | msg | ) |
See "Internal macros documentation".
#define WARN_1 | ( | msg, | |
loggers | |||
) |
See "Internal macros documentation".
#define WARN_X | ( | trash, | |
msg, | |||
loggers, | |||
targetMacro, | |||
... | |||
) | targetMacro |