KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
Logger is in charge of writing the messages to output streams. More...
#include <logger.h>
Public Types | |
Type Definitions | |
using | LoggerOutputContainerType = std::vector< LoggerOutput::Pointer > |
Enums | |
using | Severity = LoggerMessage::Severity |
using | Category = LoggerMessage::Category |
using | DistributedFilter = LoggerMessage::DistributedFilter |
Public Member Functions | |
Life Cycle | |
Logger (std::string const &TheLabel) | |
Logger () | |
Logger (Logger const &rOther)=delete | |
Avoiding Logger to be copied. More... | |
virtual | ~Logger () |
Destructor is in charge of passing the message into outputs. More... | |
Operators | |
Logger & | operator= (Logger const &rOther)=delete |
Loggers can not be assigned. More... | |
Access | |
std::string const & | GetCurrentMessage () |
Input and output | |
virtual std::string | Info () const |
Turn back information as a string. More... | |
virtual void | PrintInfo (std::ostream &rOStream) const |
Print information about this object. More... | |
virtual void | PrintData (std::ostream &rOStream) const |
Print object's data. More... | |
template<class StreamValueType > | |
Logger & | operator<< (StreamValueType const &rValue) |
string stream function More... | |
Logger & | operator<< (std::ostream &(*pf)(std::ostream &)) |
Manipulator stream function. More... | |
Logger & | operator<< (const char *rString) |
char stream function More... | |
Logger & | operator<< (CodeLocation const &TheLocation) |
Logger & | operator<< (Severity const &TheSeverity) |
Severity stream function. More... | |
Logger & | operator<< (Category const &TheCategory) |
Category stream function. More... | |
Static Public Member Functions | |
Static Methods | |
static LoggerOutputContainerType & | GetOutputsInstance () |
static LoggerOutput & | GetDefaultOutputInstance () |
static void | AddOutput (LoggerOutput::Pointer pTheOutput) |
static void | RemoveOutput (LoggerOutput::Pointer pTheOutput) |
static void | Flush () |
Logger is in charge of writing the messages to output streams.
Logger is the main class in message writing pipeline which holds an array of logger outputs and dispach the arriving logger messages to them. Implements a singletone for the list of the outputs and also has public constructors and destructors to perform the streaming.
using Kratos::Logger::LoggerOutputContainerType = std::vector<LoggerOutput::Pointer> |
|
explicit |
Kratos::Logger::Logger | ( | ) |
|
virtual |
Destructor is in charge of passing the message into outputs.
|
static |
|
static |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
virtual |
Turn back information as a string.
Logger & Kratos::Logger::operator<< | ( | CodeLocation const & | TheLocation | ) |
Logger & Kratos::Logger::operator<< | ( | const char * | rString | ) |
char stream function
Logger & Kratos::Logger::operator<< | ( | std::ostream &(*)(std::ostream &) | pf | ) |
Manipulator stream function.
|
inline |
string stream function
|
virtual |
Print object's data.
|
virtual |
Print information about this object.
|
static |