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;
196 #endif // __itkLoggerBase_h
void Info(std::string const &message)
PriorityLevelType m_LevelForFlushing
SmartPointer< Self > Pointer
Represents an output stream.
void Debug(std::string const &message)
MultipleLogOutput::Pointer m_Output
virtual PriorityLevelType GetLevelForFlushing() const
MultipleLogOutput::OutputType OutputType
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
SmartPointer< const Self > ConstPointer
Control indentation during Print() invocation.
PriorityLevelType m_PriorityLevel
Base class for most ITK classes.
virtual PriorityLevelType GetPriorityLevel() const
void Critical(std::string const &message)