Logging class final
#include <logging.hpp>
A singleton interface used by all Log instances.
A singleton manager and thread safe interface class for all Logs of the entire component.
Public static functions
Constructors, destructors, conversion operators
Public functions
- void add_appender(std::unique_ptr<Appender> appender)
- Add an appender to the internal Logger.
- auto has_level( LOGLEVEL level) -> bool noexcept
- Return TRUE iff the global log level is greater or equal than
level. - auto has_timestamps() -> bool noexcept
- Returns TRUE iff output of timestamps is activated, otherwise FALSE.
- auto level() const -> LOGLEVEL
- Returns the current log level.
- auto logger() -> const Logger&
- Access the internal Logger.
- void remove_appender(Appender* appender)
- Remove given appender from the internal Logger.
- void set_level( LOGLEVEL level)
- Set the log level.
- void set_timestamps(const bool& activate)
- Activates or deactivates the output of timestamps.
Function documentation
void arcstk:: Logging:: add_appender(std::unique_ptr<Appender> appender)
Add an appender to the internal Logger.
| Parameters | |
|---|---|
| appender in | The Appender to add |
bool arcstk:: Logging:: has_timestamps() noexcept
Returns TRUE iff output of timestamps is activated, otherwise FALSE.
| Returns | TRUE iff timestamps are logged, otherwise FALSE. |
|---|
void arcstk:: Logging:: remove_appender(Appender* appender)
Remove given appender from the internal Logger.
| Parameters | |
|---|---|
| appender in | The Appender to remove |
void arcstk:: Logging:: set_timestamps(const bool& activate)
Activates or deactivates the output of timestamps.
| Parameters | |
|---|---|
| activate in | TRUE activates logging of timestamps |