15 #if !defined(KRATOS_LOGGER_OUTPUT_H_INCLUDED )
16 #define KRATOS_LOGGER_OUTPUT_H_INCLUDED
71 : mpStream(&rOutputStream),
76 mOptions.Set(WARNING_PREFIX,
true);
77 mOptions.Set(INFO_PREFIX,
false);
78 mOptions.Set(DETAIL_PREFIX,
false);
79 mOptions.Set(DEBUG_PREFIX,
false);
80 mOptions.Set(TRACE_PREFIX,
false);
84 : mpStream(Other.mpStream), mMaxLevel(Other.mMaxLevel), mSeverity(Other.mSeverity), mCategory(Other.mCategory) {}
105 virtual void WriteHeader();
109 virtual void Flush();
112 mMaxLevel = TheLevel;
120 mSeverity = TheSeverity;
128 mCategory = TheCategory;
136 mOptions.Set(ThisFlag, Value);
140 return mOptions.Is(ThisFlag);
152 virtual std::string
Info()
const;
155 virtual void PrintInfo(std::ostream& rOStream)
const;
158 virtual void PrintData(std::ostream& rOStream)
const;
162 template<
class StreamValueType>
165 std::stringstream buffer;
168 GetStream() << buffer.str();
190 mOptions.Set(WARNING_PREFIX,
true);
191 mOptions.Set(INFO_PREFIX,
false);
192 mOptions.Set(DETAIL_PREFIX,
false);
193 mOptions.Set(DEBUG_PREFIX,
false);
194 mOptions.Set(TRACE_PREFIX,
false);
199 void SetStream(std::ostream* pStream) {mpStream = pStream;}
212 std::ostream* mpStream;
213 std::size_t mMaxLevel;
228 const LoggerOutput& rThis);
std::string Info() const override
Turn back information as a string.
Definition: periodic_interface_process.hpp:93
LoggerMessage class holdes message and the properties of the message.
Definition: logger_message.h:53
Severity
Definition: logger_message.h:64
Category
Definition: logger_message.h:72
LoggerOutput is the base class for all logger outputs.
Definition: logger_output.h:48
KRATOS_DEFINE_LOCAL_FLAG(INFO_PREFIX)
LoggerMessage::Category GetCategory() const
Definition: logger_output.h:131
virtual ~LoggerOutput()
Destructor.
Definition: logger_output.h:87
void SetCategory(LoggerMessage::Category const &TheCategory)
Definition: logger_output.h:127
KRATOS_DEFINE_LOCAL_FLAG(DEBUG_PREFIX)
LoggerMessage::Severity GetSeverity() const
Definition: logger_output.h:123
LoggerOutput()
Definition: logger_output.h:184
void SetOption(const Kratos::Flags ThisFlag, bool Value)
Definition: logger_output.h:135
KRATOS_DEFINE_LOCAL_FLAG(TRACE_PREFIX)
std::size_t GetMaxLevel() const
Definition: logger_output.h:115
KRATOS_DEFINE_LOCAL_FLAG(DETAIL_PREFIX)
LoggerOutput(LoggerOutput const &Other)
Definition: logger_output.h:83
std::ostream * pGetStream()
Definition: logger_output.h:198
bool GetOption(const Kratos::Flags ThisFlag)
Definition: logger_output.h:139
void SetSeverity(LoggerMessage::Severity const &TheSeverity)
Definition: logger_output.h:119
LoggerOutput & operator=(LoggerOutput const &Other)=delete
LoggerOutput(std::ostream &rOutputStream)
Definition: logger_output.h:70
std::ostream & GetStream()
Definition: logger_output.h:197
KRATOS_CLASS_POINTER_DEFINITION(LoggerOutput)
Pointer definition of LoggerOutput.
KRATOS_DEFINE_LOCAL_FLAG(WARNING_PREFIX)
void SetStream(std::ostream *pStream)
Definition: logger_output.h:199
void SetMaxLevel(std::size_t TheLevel)
Definition: logger_output.h:111
def Flush(a)
Definition: DEM_procedures.py:13
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432