Simple RAD Logger class.
More...
#include <rad/helper.hpp>
#include <source_location>
#include <syslog.h>
Go to the source code of this file.
|
| enum | rad::LogLevel {
rad::LOG_LEVEL_UNKNOWN = -1
, rad::LOG_LEVEL_ERROR = 0
, rad::LOG_LEVEL_WARNING
, rad::LOG_LEVEL_STATE
,
rad::LOG_LEVEL_EVENT
, rad::LOG_LEVEL_GUARD
, rad::LOG_LEVEL_ACTION
, rad::LOG_LEVEL_INFO
,
rad::LOG_LEVEL_DEBUG
, rad::LOG_LEVEL_DEBUG1
, rad::LOG_LEVEL_DEBUG2
, rad::LOG_LEVEL_DEBUG3
,
rad::LOG_LEVEL_DEBUG4
, rad::LOG_LEVEL_TRACE
} |
| |
Simple RAD Logger class.
- Copyright
- ESO - European Southern Observatory
- Author
◆ RAD_LOG
Value:
; \
; \
; \
else \
rad::SimpleLogger().Get(level)
static LogLevel & ReportingLevel()
Definition simpleLogger.hpp:123
static bool IsEnabled()
Definition simpleLogger.hpp:138
#define RAD_LOG_MAX_LEVEL
Definition simpleLogger.hpp:241
◆ RAD_LOG_ACTION
| #define RAD_LOG_ACTION |
( |
| a | ) |
|
Value:
(void)("LCOV_EXCL_BR_LINE")
void LogFunction(const LogLevel level, const char *funcname, const std::string &a)
Definition simpleLogger.hpp:217
@ LOG_LEVEL_ACTION
Definition simpleLogger.hpp:29
◆ RAD_LOG_DEBUG
| #define RAD_LOG_DEBUG |
( |
| ) |
|
Value:
; \
else \
@ LOG_LEVEL_DEBUG
Definition simpleLogger.hpp:31
◆ RAD_LOG_DEBUG1
| #define RAD_LOG_DEBUG1 |
( |
| ) |
|
Value:
; \
else \
@ LOG_LEVEL_DEBUG1
Definition simpleLogger.hpp:32
◆ RAD_LOG_DEBUG2
| #define RAD_LOG_DEBUG2 |
( |
| ) |
|
Value:
; \
else \
@ LOG_LEVEL_DEBUG2
Definition simpleLogger.hpp:33
◆ RAD_LOG_DEBUG3
| #define RAD_LOG_DEBUG3 |
( |
| ) |
|
Value:
; \
else \
@ LOG_LEVEL_DEBUG3
Definition simpleLogger.hpp:34
◆ RAD_LOG_DEBUG4
| #define RAD_LOG_DEBUG4 |
( |
| ) |
|
Value:
; \
else \
@ LOG_LEVEL_DEBUG4
Definition simpleLogger.hpp:35
◆ RAD_LOG_ERROR
| #define RAD_LOG_ERROR |
( |
| ) |
|
Value:
; \
else \
@ LOG_LEVEL_ERROR
Definition simpleLogger.hpp:24
◆ RAD_LOG_EVENT
| #define RAD_LOG_EVENT |
( |
| a | ) |
|
Value:
(void)("LCOV_EXCL_BR_LINE")
void LogEventFunction(const std::string &a)
Definition simpleLogger.hpp:229
◆ RAD_LOG_GUARD
| #define RAD_LOG_GUARD |
( |
| a | ) |
|
Value:
(void)("LCOV_EXCL_BR_LINE")
@ LOG_LEVEL_GUARD
Definition simpleLogger.hpp:28
◆ RAD_LOG_INFO
Value:
; \
else \
@ LOG_LEVEL_INFO
Definition simpleLogger.hpp:30
◆ RAD_LOG_LOGMON_CLOSE
| #define RAD_LOG_LOGMON_CLOSE |
( |
| ) |
|
Value:
static void CloseLogMon()
Definition simpleLogger.hpp:206
◆ RAD_LOG_LOGMON_OPEN
| #define RAD_LOG_LOGMON_OPEN |
( |
| ident | ) |
|
Value:
static void OpenLogMon(const char *procname)
Definition simpleLogger.hpp:202
◆ RAD_LOG_MAX_LEVEL
◆ RAD_LOG_SETHOSTNAME
| #define RAD_LOG_SETHOSTNAME |
( |
| name | ) |
|
Value:
static std::string & HostName()
Definition simpleLogger.hpp:152
◆ RAD_LOG_SETLEVEL
| #define RAD_LOG_SETLEVEL |
( |
| levelName | ) |
|
Value:
static LogLevel LevelFromString(const std::string &level)
Definition simpleLogger.hpp:171
◆ RAD_LOG_SETMODNAME
| #define RAD_LOG_SETMODNAME |
( |
| name | ) |
|
Value:
static std::string & ModuleName()
Definition simpleLogger.hpp:142
◆ RAD_LOG_SETPROCNAME
| #define RAD_LOG_SETPROCNAME |
( |
| name | ) |
|
Value:
static std::string & ProcName()
Definition simpleLogger.hpp:147
◆ RAD_LOG_STATE
| #define RAD_LOG_STATE |
( |
| a, |
|
|
| b ) |
Value:
(void)("LCOV_EXCL_BR_LINE")
void LogStateFunction(const std::string &a, const std::string &b)
Definition simpleLogger.hpp:223
◆ RAD_LOG_TO_CONSOLE
| #define RAD_LOG_TO_CONSOLE |
( |
| is_enabled | ) |
|
Value:
static bool & EnableConsole()
Definition simpleLogger.hpp:128
◆ RAD_LOG_TO_LOGMON
| #define RAD_LOG_TO_LOGMON |
( |
| is_enabled | ) |
|
Value:
static bool & EnableLogMon()
Definition simpleLogger.hpp:133
◆ RAD_LOG_TRACE
| #define RAD_LOG_TRACE |
( |
| ) |
|
Value:
(void)("LCOV_EXCL_BR_LINE")
void LogTraceFunction(const LogLevel level, const char *filename, const char *funcname, const int linenum)
Definition simpleLogger.hpp:210
@ LOG_LEVEL_TRACE
Definition simpleLogger.hpp:36
◆ RAD_LOG_WARNING
| #define RAD_LOG_WARNING |
( |
| ) |
|
Value:
; \
else \
@ LOG_LEVEL_WARNING
Definition simpleLogger.hpp:25