PLCnext API Documentation 25.0.2.69
Public Member Functions | List of all members
Arp::System::Commons::Diagnostics::Logging::Logger< T > Class Template Reference

This class might be used for logging while the typename of the T determines the logger name. More...

#include <Logger.hxx>

Inheritance diagram for Arp::System::Commons::Diagnostics::Logging::Logger< T >:
Inheritance graph

Public Member Functions

 Logger (void)
 Constructs an Logger instance while using the common typename of T as logger name. More...
 
- Public Member Functions inherited from Arp::System::Commons::Diagnostics::Logging::LoggerBase
 LoggerBase (const String &loggerName)
 Constructs an LoggerBase instance. More...
 
 LoggerBase (const LoggerBase &arg)
 Default copy constructor.
 
 LoggerBase (LoggerBase &&arg) noexcept
 Default move constructor.
 
LoggerBaseoperator= (const LoggerBase &arg)
 Default copy-assignment operator.
 
LoggerBaseoperator= (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
 

Additional Inherited Members

- Public Types inherited from Arp::System::Commons::Diagnostics::Logging::LoggerBase
using Impl = Log4Arp::Logger
 

Detailed Description

template<class T = void>
class Arp::System::Commons::Diagnostics::Logging::Logger< T >

This class might be used for logging while the typename of the T determines the logger name.

Constructor & Destructor Documentation

◆ Logger()

template<class T >
Arp::System::Commons::Diagnostics::Logging::Logger< T >::Logger ( void  )
inline

Constructs an Logger instance while using the common typename of T as logger name.

Template Parameters
TThe type determining the name of this logger

The documentation for this class was generated from the following file: