PLCnext API Documentation 26.6.0.38
Static Public Member Functions | List of all members
Arp::Base::Commons::Logging::Log Class Reference

This pure static class provides static logging. More...

#include <Log.hpp>

Static Public Member Functions

static void Initialize (const String &loggerName)
 Initializes the (global) static logger. More...
 
template<typename... Args>
static void Trace (const char *format, const Args &... args)
 Logs the formatted message with LogLevel::Trace. More...
 
template<typename... Args>
static void Debug (const char *format, const Args &... args)
 Logs the formatted message with LogLevel::Debug. More...
 
template<typename... Args>
static void Info (const char *format, const Args &... args)
 Logs the formatted message with LogLevel::Info. More...
 
template<typename... Args>
static void Warning (const char *format, const Args &... args)
 Logs the formatted message with LogLevel::Warning. More...
 
template<typename... Args>
static void Critical (const char *format, const Args &... args)
 Logs the formatted message with LogLevel::Critical. More...
 
template<typename... Args>
static void Error (const char *format, const Args &... args)
 Logs the formatted message with LogLevel::Error. More...
 
template<typename... Args>
static void Fatal (const char *format, const Args &... args)
 Logs the formatted message with LogLevel::Fatal. More...
 
template<typename... Args>
static void PrintTrace (const char *format, const Args &... args)
 Logs the formatted message with LogLevel::Trace. More...
 
template<typename... Args>
static void PrintDebug (const char *format, const Args &... args)
 Logs the formatted message with LogLevel::Debug. More...
 
template<typename... Args>
static void PrintInfo (const char *format, const Args &... args)
 Logs the formatted message with LogLevel::Info. More...
 
template<typename... Args>
static void PrintWarning (const char *format, const Args &... args)
 Logs the formatted message with LogLevel::Warning. More...
 
template<typename... Args>
static void PrintCritical (const char *format, const Args &... args)
 Logs the formatted message with LogLevel::Critical. More...
 
template<typename... Args>
static void PrintError (const char *format, const Args &... args)
 Logs the formatted message with LogLevel::Error. More...
 
template<typename... Args>
static void PrintFatal (const char *format, const Args &... args)
 Logs the formatted message with LogLevel::Fatal. More...
 

Detailed Description

This pure static class provides static logging.

Member Function Documentation

◆ Critical()

template<typename... Args>
void Arp::Base::Commons::Logging::Log::Critical ( const char *  format,
const Args &...  args 
)
inlinestatic

Logs the formatted message with LogLevel::Critical.

Template Parameters
...ArgsThe types of the message format arguments.
Parameters
formatThe message format string.
...argsThe message format arguments.

◆ Debug()

template<typename... Args>
void Arp::Base::Commons::Logging::Log::Debug ( const char *  format,
const Args &...  args 
)
inlinestatic

Logs the formatted message with LogLevel::Debug.

Template Parameters
...ArgsThe types of the message format arguments.
Parameters
formatThe message format string.
...argsThe message format arguments.

◆ Error()

template<typename... Args>
void Arp::Base::Commons::Logging::Log::Error ( const char *  format,
const Args &...  args 
)
inlinestatic

Logs the formatted message with LogLevel::Error.

Template Parameters
...ArgsThe types of the message format arguments.
Parameters
formatThe message format string.
...argsThe message format arguments.

◆ Fatal()

template<typename... Args>
void Arp::Base::Commons::Logging::Log::Fatal ( const char *  format,
const Args &...  args 
)
inlinestatic

Logs the formatted message with LogLevel::Fatal.

Template Parameters
...ArgsThe types of the message format arguments.
Parameters
formatThe message format string.
...argsThe message format arguments.

◆ Info()

template<typename... Args>
void Arp::Base::Commons::Logging::Log::Info ( const char *  format,
const Args &...  args 
)
inlinestatic

Logs the formatted message with LogLevel::Info.

Template Parameters
...ArgsThe types of the message format arguments.
Parameters
formatThe message format string.
...argsThe message format arguments.

◆ Initialize()

void Arp::Base::Commons::Logging::Log::Initialize ( const String loggerName)
static

Initializes the (global) static logger.

Parameters
loggerNameThe name of the (global) static logger.

◆ PrintCritical()

template<typename... Args>
void Arp::Base::Commons::Logging::Log::PrintCritical ( const char *  format,
const Args &...  args 
)
inlinestatic

Logs the formatted message with LogLevel::Critical.

Template Parameters
...ArgsThe types of the message format arguments.
Parameters
formatThe message format string in printf syntax.
...argsThe message format arguments.

◆ PrintDebug()

template<typename... Args>
void Arp::Base::Commons::Logging::Log::PrintDebug ( const char *  format,
const Args &...  args 
)
inlinestatic

Logs the formatted message with LogLevel::Debug.

Template Parameters
...ArgsThe types of the message format arguments.
Parameters
formatThe message format string in printf syntax.
...argsThe message format arguments.

◆ PrintError()

template<typename... Args>
void Arp::Base::Commons::Logging::Log::PrintError ( const char *  format,
const Args &...  args 
)
inlinestatic

Logs the formatted message with LogLevel::Error.

Template Parameters
...ArgsThe types of the message format arguments.
Parameters
formatThe message format string in printf syntax.
...argsThe message format arguments.

◆ PrintFatal()

template<typename... Args>
void Arp::Base::Commons::Logging::Log::PrintFatal ( const char *  format,
const Args &...  args 
)
inlinestatic

Logs the formatted message with LogLevel::Fatal.

Template Parameters
...ArgsThe types of the message format arguments.
Parameters
formatThe message format string in printf syntax.
...argsThe message format arguments.

◆ PrintInfo()

template<typename... Args>
void Arp::Base::Commons::Logging::Log::PrintInfo ( const char *  format,
const Args &...  args 
)
inlinestatic

Logs the formatted message with LogLevel::Info.

Template Parameters
...ArgsThe types of the message format arguments.
Parameters
formatThe message format string in printf syntax.
...argsThe message format arguments.

◆ PrintTrace()

template<typename... Args>
void Arp::Base::Commons::Logging::Log::PrintTrace ( const char *  format,
const Args &...  args 
)
inlinestatic

Logs the formatted message with LogLevel::Trace.

Template Parameters
...ArgsThe types of the message format arguments.
Parameters
formatThe message format string in printf syntax.
...argsThe message format arguments.

◆ PrintWarning()

template<typename... Args>
void Arp::Base::Commons::Logging::Log::PrintWarning ( const char *  format,
const Args &...  args 
)
inlinestatic

Logs the formatted message with LogLevel::Warning.

Template Parameters
...ArgsThe types of the message format arguments.
Parameters
formatThe message format string in printf syntax.
...argsThe message format arguments.

◆ Trace()

template<typename... Args>
void Arp::Base::Commons::Logging::Log::Trace ( const char *  format,
const Args &...  args 
)
inlinestatic

Logs the formatted message with LogLevel::Trace.

Template Parameters
...ArgsThe types of the message format arguments.
Parameters
formatThe message format string.
...argsThe message format arguments.

◆ Warning()

template<typename... Args>
void Arp::Base::Commons::Logging::Log::Warning ( const char *  format,
const Args &...  args 
)
inlinestatic

Logs the formatted message with LogLevel::Warning.

Template Parameters
...ArgsThe types of the message format arguments.
Parameters
formatThe message format string.
...argsThe message format arguments.

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