18 #ifndef itkLoggerBase_h
19 #define itkLoggerBase_h
63 itkSetStringMacro(Name);
64 itkGetStringMacro(Name);
70 } TimeStampFormatType;
81 itkSetMacro(TimeStampFormat, TimeStampFormatType);
82 itkGetConstReferenceMacro(TimeStampFormat, TimeStampFormatType);
93 itkSetStringMacro(HumanReadableFormat);
94 itkGetStringMacro(HumanReadableFormat);
98 virtual std::string BuildFormattedEntry(PriorityLevelType level,
99 std::string
const & content);
106 m_PriorityLevel = level;
114 return m_PriorityLevel;
119 m_LevelForFlushing = level;
124 return m_LevelForFlushing;
128 virtual void AddLogOutput(OutputType *output);
130 virtual void Write(PriorityLevelType level, std::string
const & content);
133 void Debug(std::string
const & message)
138 void Info(std::string
const & message)
153 void Error(std::string
const & message)
158 void Fatal(std::string
const & message)
163 virtual void Flush();
174 virtual
void PrintSelf(std::ostream & os,
Indent indent) const ITK_OVERRIDE;
188 std::
string m_HumanReadableFormat;
196 #endif // itkLoggerBase_h
void Info(std::string const &message)
SmartPointer< Self > Pointer
Allows writing simultaneously to multiple streams. Note that the class derives from std::streambuf an...
Represents an output stream.
void Debug(std::string const &message)
virtual PriorityLevelType GetLevelForFlushing() const
MultipleLogOutput::OutputType OutputType
virtual void SetPriorityLevel(PriorityLevelType level)
Provides a timestamp from a real-time clock.
Used for logging information during a run.
virtual void SetLevelForFlushing(PriorityLevelType level)
void Error(std::string const &message)
void Warning(std::string const &message)
void Fatal(std::string const &message)
SmartPointer< const Self > ConstPointer
Control indentation during Print() invocation.
Base class for most ITK classes.
virtual PriorityLevelType GetPriorityLevel() const
void Critical(std::string const &message)