Interface class for logging errors and warnings. More...
#include <LoggingInterface.h>
Public Member Functions | |
LoggingInterface (Logger &log) | |
Constructor. More... | |
template<typename... Args> | |
void | logError (Args &&... args) const |
Logs an error. More... | |
template<typename... Args> | |
void | logComponentError (const std::string &component_name, Args &&... args) const |
Logs an error for a component. More... | |
template<typename... Args> | |
void | logWarning (Args &&... args) const |
Logs a warning. More... | |
template<typename... Args> | |
void | logComponentWarning (const std::string &component_name, Args &&... args) const |
Logs a warning for a component. More... | |
Protected Attributes | |
Logger & | _log |
Interface class for logging errors and warnings.
This allows errors/warnings to be cached and output all at once instead of needing to stop each time an error is encountered.
Definition at line 22 of file LoggingInterface.h.
LoggingInterface::LoggingInterface | ( | Logger & | log | ) |
Constructor.
[in] | fe_problem | FEProblemBase-derived object that has the Logger instance |
Definition at line 13 of file LoggingInterface.C.
|
inline |
Logs an error for a component.
[in] | component_name | Name of the component |
Definition at line 47 of file LoggingInterface.h.
Referenced by Closures1PhaseSimple::checkFlowChannel(), Closures1PhaseSimple::checkHeatTransfer(), and Component::logError().
|
inline |
Logs a warning for a component.
[in] | component_name | Name of the component |
Definition at line 67 of file LoggingInterface.h.
Referenced by Component::logWarning().
|
inline |
Logs an error.
Definition at line 36 of file LoggingInterface.h.
Referenced by Simulation::addClosures(), Simulation::addComponent(), Simulation::controlDataIntegrityCheck(), Simulation::declareControlData(), Simulation::identifyLoops(), and Simulation::integrityCheck().
|
inline |
Logs a warning.
Definition at line 56 of file LoggingInterface.h.
|
protected |
Definition at line 73 of file LoggingInterface.h.
Referenced by logComponentError(), logComponentWarning(), logError(), and logWarning().