18 #ifndef itkLoggerBase_h
19 #define itkLoggerBase_h
25 #undef DEBUG // HDF5 publicly exports this define when built in debug mode
68 itkSetStringMacro(Name);
69 itkGetStringMacro(Name);
75 } TimeStampFormatType;
86 itkSetMacro(TimeStampFormat, TimeStampFormatType);
87 itkGetConstReferenceMacro(TimeStampFormat, TimeStampFormatType);
98 itkSetStringMacro(HumanReadableFormat);
99 itkGetStringMacro(HumanReadableFormat);
103 virtual std::string BuildFormattedEntry(PriorityLevelType level,
104 std::string
const & content);
111 m_PriorityLevel = level;
119 return m_PriorityLevel;
124 m_LevelForFlushing = level;
129 return m_LevelForFlushing;
133 virtual void AddLogOutput(OutputType *output);
135 virtual void Write(PriorityLevelType level, std::string
const & content);
138 void Debug(std::string
const & message)
143 void Info(std::string
const & message)
158 void Error(std::string
const & message)
163 void Fatal(std::string
const & message)
168 virtual void Flush();
179 void PrintSelf(std::ostream & os,
Indent indent)
const override;
201 #endif // itkLoggerBase_h
void Info(std::string const &message)
Light weight base class for most itk classes.
PriorityLevelType m_LevelForFlushing
Represents an output stream.
void Debug(std::string const &message)
MultipleLogOutput::Pointer m_Output
virtual PriorityLevelType GetLevelForFlushing() const
virtual void SetPriorityLevel(PriorityLevelType level)
Used for logging information during a run.
virtual void SetLevelForFlushing(PriorityLevelType level)
void Error(std::string const &message)
void Warning(std::string const &message)
TimeStampFormatType m_TimeStampFormat
RealTimeClock::Pointer m_Clock
void Fatal(std::string const &message)
std::string m_HumanReadableFormat
Control indentation during Print() invocation.
PriorityLevelType m_PriorityLevel
Base class for most ITK classes.
virtual PriorityLevelType GetPriorityLevel() const
void Critical(std::string const &message)