Peano
TP::LoggingAdapter Struct Reference

The LoggingAdapter: Logging in Cactus/printf style without macros. More...

#include <TP_Logging.h>

Inheritance diagram for TP::LoggingAdapter:
Collaboration diagram for TP::LoggingAdapter:

Public Member Functions

void TP_LOG (const char *fmt,...)
 
void TP_ERROR (const char *fmt,...)
 
void TP_INFO (const char *fmt,...)
 
void TP_WARN (const char *fmt,...)
 
 LoggingAdapter ()
 

Data Fields

loggerlog
 

Detailed Description

The LoggingAdapter: Logging in Cactus/printf style without macros.

Just inherit from this class to use the facilities.

Definition at line 44 of file TP_Logging.h.

Constructor & Destructor Documentation

◆ LoggingAdapter()

TP::LoggingAdapter::LoggingAdapter ( )

Definition at line 53 of file TP_Logging.h.

References log.

Member Function Documentation

◆ TP_ERROR()

void LoggingAdapter::TP_ERROR ( const char *  fmt,
  ... 
)

Definition at line 52 of file TP_Logging.cpp.

References TP::logger::error(), log, and vformat().

Here is the call graph for this function:

◆ TP_INFO()

void LoggingAdapter::TP_INFO ( const char *  fmt,
  ... 
)

Definition at line 60 of file TP_Logging.cpp.

References TP::logger::info(), log, and vformat().

Referenced by TP::Parameters::PrintParameters().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TP_LOG()

void LoggingAdapter::TP_LOG ( const char *  fmt,
  ... 
)

Definition at line 44 of file TP_Logging.cpp.

References TP::logger::log(), log, and vformat().

Here is the call graph for this function:

◆ TP_WARN()

void LoggingAdapter::TP_WARN ( const char *  fmt,
  ... 
)

Definition at line 68 of file TP_Logging.cpp.

References log, vformat(), and TP::logger::warn().

Here is the call graph for this function:

Field Documentation

◆ log

logger* TP::LoggingAdapter::log

Definition at line 51 of file TP_Logging.h.

Referenced by LoggingAdapter(), TP_ERROR(), TP_INFO(), TP_LOG(), and TP_WARN().


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