|
iceoryx2
C++ Language Bindings
|
This class acts as common interface for the Logger. It provides the common functionality and inherits from the BaseLogger which is provided as template parameter. Please have a look at the design document for more details. More...
#include <logger.hpp>
Public Member Functions | |
| Logger ()=default | |
| Logger (const Logger &)=delete | |
| Logger (Logger &&)=delete | |
| Logger & | operator= (const Logger &)=delete |
| Logger & | operator= (Logger &&)=delete |
| ~Logger ()=default | |
Static Public Member Functions | |
| static Logger & | get () noexcept |
| Access to the logger singleton instance. | |
| static void | init (const LogLevel logLevel=logLevelFromEnvOr(LogLevel::Info)) noexcept |
| Initializes the logger. | |
| static void | setActiveLogger (Logger &newLogger) noexcept |
| Replaces the default logger with the specified one. | |
Friends | |
| class | log::LogStream |
This class acts as common interface for the Logger. It provides the common functionality and inherits from the BaseLogger which is provided as template parameter. Please have a look at the design document for more details.
in] BaseLogger is the actual implementation
Definition at line 71 of file logger.hpp.
|
default |
|
delete |
|
delete |
|
default |
|
staticnoexcept |
Access to the logger singleton instance.
|
staticnoexcept |
Initializes the logger.
| [in] | logLevel | the log level which will be used to determine which messages will be logged. By default it is everything with a log level higher than specified by the 'IOX2_LOG_LEVEL' environment variable or equal to 'INFO' if the environment variable is not set. |
|
delete |
|
delete |
|
staticnoexcept |
Replaces the default logger with the specified one.
| [in] | newLogger | is the logger which shall be used after the call |
|
friend |
Definition at line 73 of file logger.hpp.