| 
    PLCnext API Documentation 25.6.0.37
    
   | 
 
This class shall be used as base class for all Logger. More...
#include <LoggerBase.hpp>

Public Types | |
| using | Impl = Log4Arp::Logger | 
Public Member Functions | |
| LoggerBase (const String &loggerName) | |
| Constructs an LoggerBase instance. More... | |
| LoggerBase (const LoggerBase &arg) | |
| Default copy constructor. | |
| LoggerBase (LoggerBase &&arg) noexcept | |
| Default move constructor. | |
| LoggerBase & | operator= (const LoggerBase &arg) | 
| Default copy-assignment operator. | |
| LoggerBase & | operator= (LoggerBase &&arg) noexcept | 
| Default move-assignment operator. | |
| ~LoggerBase (void) | |
| Default destructor. | |
| String | GetName (void) const | 
| Gets the name of this logger. More... | |
| LogLevel | GetLogLevel (void) const | 
| Gets the log level of this logger. More... | |
| void | InitializeOnce (const String &loggerName) | 
| Lazy initializes this logger instance once. More... | |
| void | Log (LogLevel severity, String &&message) const | 
| Logs the given message according the specified severity. More... | |
| void | Log (LogLevel severity, const String &message) const | 
| Logs the given message according the specified severity. More... | |
| template<typename... Args> | |
| void | Trace (const char *format, const Args &... args) const | 
| Formats the supplied message and logs it if the log level of this logger is greater or equal than LogLevel::Trace.  More... | |
| template<typename... Args> | |
| void | Debug (const char *format, const Args &... args) const | 
| Formats the supplied message and logs it if the log level of this logger is greater or equal than LogLevel::Debug.  More... | |
| template<typename... Args> | |
| void | Info (const char *format, const Args &... args) const | 
| Formats the supplied message and logs it if the log level of this logger is greater or equal than LogLevel::Info.  More... | |
| template<typename... Args> | |
| void | Warning (const char *format, const Args &... args) const | 
| Formats the supplied message and logs it if the log level of this logger is greater or equal than LogLevel::Warning.  More... | |
| template<typename... Args> | |
| void | Critical (const char *format, const Args &... args) const | 
| Formats the supplied message and logs it if the log level of this logger is greater or equal than LogLevel::Critical.  More... | |
| template<typename... Args> | |
| void | Error (const char *format, const Args &... args) const | 
| Formats the supplied message and logs it if the log level of this logger is greater or equal than LogLevel::Error.  More... | |
| template<typename... Args> | |
| void | Fatal (const char *format, const Args &... args) const | 
| Formats the supplied message and logs it if the log level of this logger is greater or equal than LogLevel::Fatal.  More... | |
| template<typename... Args> | |
| void | PrintTrace (const char *format, const Args &... args) const | 
Formats the supplied message in printf style and logs it if the log level of this logger is greater or equal than LogLevel::Trace.  More... | |
| template<typename... Args> | |
| void | PrintDebug (const char *format, const Args &... args) const | 
Formats the supplied message in printf style and logs it if the log level of this logger is greater or equal than LogLevel::Debug.  More... | |
| template<typename... Args> | |
| void | PrintInfo (const char *format, const Args &... args) const | 
Formats the supplied message in printf style and logs it if the log level of this logger is greater or equal than LogLevel::Info.  More... | |
| template<typename... Args> | |
| void | PrintWarning (const char *format, const Args &... args) const | 
Formats the supplied message in printf style and logs it if the log level of this logger is greater or equal than LogLevel::Warning.  More... | |
| template<typename... Args> | |
| void | PrintCritical (const char *format, const Args &... args) const | 
Formats the supplied message in printf style and logs it if the log level of this logger is greater or equal than LogLevel::Critical.  More... | |
| template<typename... Args> | |
| void | PrintError (const char *format, const Args &... args) const | 
Formats the supplied message in printf style and logs it if the log level of this logger is greater or equal than LogLevel::Error.  More... | |
| template<typename... Args> | |
| void | PrintFatal (const char *format, const Args &... args) const | 
Formats the supplied message in printf style and logs it if the log level of this logger is greater or equal than LogLevel::Fatal.  More... | |
| template<typename... Args> | |
| void | Log (LogLevel logLevel, const char *format, const Args &... args) const | 
Formats the supplied message in printf style and logs it if the log level of this logger is greater or equal than the given severity.  More... | |
| template<typename... Args> | |
| void | Logf (LogLevel logLevel, const char *format, const Args &... args) const | 
Formats the supplied message in printf style and logs it if the log level of this logger is greater or equal than the given severity.  More... | |
| Impl & | GetImpl (void) | 
| For internal use only. | |
| const Impl & | GetImpl (void) const | 
This class shall be used as base class for all Logger.
      
  | 
  explicit | 
Constructs an LoggerBase instance.
| value | Specifies the initial value of property ... | 
      
  | 
  inline | 
Formats the supplied message and logs it if the log level of this logger is greater or equal than LogLevel::Critical.
| ...Args | The types of the message arguments. | 
| format | The format string of the message. | 
| ...args | The arguments to be formatted into the <paramref="format"/> string. | 
The log message is only formatted, if its not ommitted by its severity.
      
  | 
  inline | 
Formats the supplied message and logs it if the log level of this logger is greater or equal than LogLevel::Debug.
| ...Args | The types of the message arguments. | 
| format | The format string of the message. | 
| ...args | The arguments to be formatted into the <paramref="format"/> string. | 
The log message is only formatted, if its not ommitted by its severity.
      
  | 
  inline | 
Formats the supplied message and logs it if the log level of this logger is greater or equal than LogLevel::Error.
| ...Args | The types of the message arguments. | 
| format | The format string of the message. | 
| ...args | The arguments to be formatted into the <paramref="format"/> string. | 
The log message is only formatted, if its not ommitted by its severity.
      
  | 
  inline | 
Formats the supplied message and logs it if the log level of this logger is greater or equal than LogLevel::Fatal.
| ...Args | The types of the message arguments. | 
| format | The format string of the message. | 
| ...args | The arguments to be formatted into the <paramref="format"/> string. | 
The log message is only formatted, if its not ommitted by its severity.
| LogLevel Arp::System::Commons::Diagnostics::Logging::LoggerBase::GetLogLevel | ( | void | ) | const | 
Gets the log level of this logger.
If the log level of this logger was not set, the root log level is returned.
| String Arp::System::Commons::Diagnostics::Logging::LoggerBase::GetName | ( | void | ) | const | 
Gets the name of this logger.
      
  | 
  inline | 
Formats the supplied message and logs it if the log level of this logger is greater or equal than LogLevel::Info.
| ...Args | The types of the message arguments. | 
| format | The format string of the message. | 
| ...args | The arguments to be formatted into the <paramref="format"/> string. | 
The log message is only formatted, if its not ommitted by its severity.
| void Arp::System::Commons::Diagnostics::Logging::LoggerBase::InitializeOnce | ( | const String & | loggerName | ) | 
Lazy initializes this logger instance once.
| loggerName | The logger name of this logger. | 
      
  | 
  inline | 
Formats the supplied message in printf style and logs it if the log level of this logger is greater or equal than the given severity. 
| ...Args | The types of the message arguments. | 
| severity | The severity of the message. | 
| format | The format string of the message. | 
| ...args | The arguments to be formatted into the <paramref="format"/> string. | 
The log message is only formatted, if its not ommitted by its severity.
| void Arp::System::Commons::Diagnostics::Logging::LoggerBase::Log | ( | LogLevel | severity, | 
| const String & | message | ||
| ) | const | 
Logs the given message according the specified severity.
| severity | The severity of the log message. | 
| message | The log message to be logged. | 
The log message is only logged, if the severity is less or equal than the actual log level of this logger.
| void Arp::System::Commons::Diagnostics::Logging::LoggerBase::Log | ( | LogLevel | severity, | 
| String && | message | ||
| ) | const | 
Logs the given message according the specified severity.
| severity | The severity of the log message. | 
| message | The log message to be logged. | 
The log message is only logged, if the severity is less or equal than the actual log level of this logger.
      
  | 
  inline | 
Formats the supplied message in printf style and logs it if the log level of this logger is greater or equal than the given severity. 
| ...Args | The types of the message arguments. | 
| severity | The severity of the message. | 
| format | The format string of the message. | 
| ...args | The arguments to be formatted into the <paramref="format"/> string. | 
The log message is only formatted, if its not ommitted by its severity.
      
  | 
  inline | 
Formats the supplied message in printf style and logs it if the log level of this logger is greater or equal than LogLevel::Critical. 
| ...Args | The types of the message arguments. | 
| format | The format string of the message. | 
| ...args | The arguments to be formatted into the <paramref="format"/> string. | 
The log message is only formatted, if its not ommitted by its severity.
      
  | 
  inline | 
Formats the supplied message in printf style and logs it if the log level of this logger is greater or equal than LogLevel::Debug. 
| ...Args | The types of the message arguments. | 
| format | The format string of the message. | 
| ...args | The arguments to be formatted into the <paramref="format"/> string. | 
The log message is only formatted, if its not ommitted by its severity.
      
  | 
  inline | 
Formats the supplied message in printf style and logs it if the log level of this logger is greater or equal than LogLevel::Error. 
| ...Args | The types of the message arguments. | 
| format | The format string of the message. | 
| ...args | The arguments to be formatted into the <paramref="format"/> string. | 
The log message is only formatted, if its not ommitted by its severity.
      
  | 
  inline | 
Formats the supplied message in printf style and logs it if the log level of this logger is greater or equal than LogLevel::Fatal. 
| ...Args | The types of the message arguments. | 
| format | The format string of the message. | 
| ...args | The arguments to be formatted into the <paramref="format"/> string. | 
The log message is only formatted, if its not ommitted by its severity.
      
  | 
  inline | 
Formats the supplied message in printf style and logs it if the log level of this logger is greater or equal than LogLevel::Info. 
| ...Args | The types of the message arguments. | 
| format | The format string of the message. | 
| ...args | The arguments to be formatted into the <paramref="format"/> string. | 
The log message is only formatted, if its not ommitted by its severity.
      
  | 
  inline | 
Formats the supplied message in printf style and logs it if the log level of this logger is greater or equal than LogLevel::Trace. 
| ...Args | The types of the message arguments. | 
| format | The format string of the message. | 
| ...args | The arguments to be formatted into the <paramref="format"/> string. | 
The log message is only formatted, if its not ommitted by its severity.
      
  | 
  inline | 
Formats the supplied message in printf style and logs it if the log level of this logger is greater or equal than LogLevel::Warning. 
| ...Args | The types of the message arguments. | 
| format | The format string of the message. | 
| ...args | The arguments to be formatted into the <paramref="format"/> string. | 
The log message is only formatted, if its not ommitted by its severity.
      
  | 
  inline | 
Formats the supplied message and logs it if the log level of this logger is greater or equal than LogLevel::Trace.
| ...Args | The types of the message arguments. | 
| format | The format string of the message. | 
| ...args | The arguments to be formatted into the <paramref="format"/> string. | 
The log message is only formatted, if its not ommitted by its severity.
      
  | 
  inline | 
Formats the supplied message and logs it if the log level of this logger is greater or equal than LogLevel::Warning.
| ...Args | The types of the message arguments. | 
| format | The format string of the message. | 
| ...args | The arguments to be formatted into the <paramref="format"/> string. | 
The log message is only formatted, if its not ommitted by its severity.