Keeps the error and warning messages. More...
#include <Logger.h>
Classes | |
class | Message |
Simple data structure to hold the messages. More... | |
Public Types | |
enum | EMessageType { ERROR = 0, WARNING = 1 } |
Public Member Functions | |
Logger () | |
virtual | ~Logger () |
template<typename... Args> | |
void | add (EMessageType type, Args &&... args) |
Add a message to the log. More... | |
void | emitLoggedErrors () const |
Calls mooseError if there are any logged errors. More... | |
void | emitLoggedWarnings () const |
Calls mooseWarning if there are any logged warnings. More... | |
unsigned int | getNumberOfErrors () const |
Return the number of errors. More... | |
unsigned int | getNumberOfWarnings () const |
Return the number of warnings. More... | |
Protected Attributes | |
unsigned int | _n_errors |
The number of errors. More... | |
unsigned int | _n_warnings |
The number of warnings. More... | |
std::vector< Message * > | _msgs |
The list of logged messages. More... | |
enum Logger::EMessageType |
Enumerator | |
---|---|
ERROR | |
WARNING |
Definition at line 23 of file Logger.h.
|
inline |
Add a message to the log.
type | The type of the message |
Definition at line 35 of file Logger.h.
Referenced by LoggingInterface::logComponentError(), LoggingInterface::logComponentWarning(), LoggingInterface::logError(), and LoggingInterface::logWarning().
void Logger::emitLoggedErrors | ( | ) | const |
Calls mooseError if there are any logged errors.
Definition at line 21 of file Logger.C.
Referenced by Simulation::controlDataIntegrityCheck(), and Simulation::integrityCheck().
void Logger::emitLoggedWarnings | ( | ) | const |
Calls mooseWarning if there are any logged warnings.
Definition at line 35 of file Logger.C.
Referenced by Simulation::integrityCheck().
unsigned int Logger::getNumberOfErrors | ( | ) | const |
unsigned int Logger::getNumberOfWarnings | ( | ) | const |
|
protected |
The list of logged messages.
Definition at line 102 of file Logger.h.
Referenced by add(), emitLoggedErrors(), emitLoggedWarnings(), and ~Logger().
|
protected |
The number of errors.
Definition at line 98 of file Logger.h.
Referenced by add(), emitLoggedErrors(), and getNumberOfErrors().
|
protected |
The number of warnings.
Definition at line 100 of file Logger.h.
Referenced by add(), emitLoggedWarnings(), and getNumberOfWarnings().