class final
#include <include/logging.hpp>
v_1_0_0::Logging 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:: v_1_0_0:: Logging:: add_appender(std::unique_ptr<Appender> appender)
Add an appender to the internal Logger.
Parameters | |
---|---|
appender in | The Appender to add |
bool arcstk:: v_1_0_0:: Logging:: has_timestamps() noexcept
Returns TRUE iff output of timestamps is activated, otherwise FALSE.
Returns | TRUE iff timestamps are logged, otherwise FALSE. |
---|
void arcstk:: v_1_0_0:: Logging:: remove_appender(Appender* appender)
Remove given appender from the internal Logger.
Parameters | |
---|---|
appender in | The Appender to remove |
void arcstk:: v_1_0_0:: Logging:: set_timestamps(const bool& activate)
Activates or deactivates the output of timestamps.
Parameters | |
---|---|
activate in | TRUE activates logging of timestamps |