Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::LoggerBase Class Reference
[OS System Objects]

Class LoggerBase is meant for logging information during a run. More...

#include <itkLoggerBase.h>

Inheritance diagram for itk::LoggerBase:

Inheritance graph
[legend]
Collaboration diagram for itk::LoggerBase:

Collaboration graph
[legend]
List of all members.

Public Types

typedef LoggerBase Self
typedef Object Superclass
typedef SmartPointer< SelfPointer
typedef SmartPointer< const
Self
ConstPointer
typedef MultipleLogOutput::OutputType OutputType
enum  PriorityLevelType {
  MUSTFLUSH = 0, FATAL, CRITICAL, WARNING,
  INFO, DEBUG, NOTSET
}

Public Member Functions

virtual const char * GetNameOfClass () const
virtual void SetName (const char *_arg)
virtual const char * GetName () const
virtual std::string BuildFormattedEntry (PriorityLevelType level, std::string const &content)
virtual void SetPriorityLevel (PriorityLevelType level)
virtual PriorityLevelType GetPriorityLevel () const
virtual void SetLevelForFlushing (PriorityLevelType level)
virtual PriorityLevelType GetLevelForFlushing () const
virtual void AddLogOutput (OutputType *output)
virtual void Write (PriorityLevelType level, std::string const &content)
virtual void Flush ()

Protected Member Functions

 LoggerBase ()
virtual ~LoggerBase ()
virtual void PrintSelf (std::ostream &os, Indent indent) const

Protected Attributes

PriorityLevelType m_PriorityLevel
PriorityLevelType m_LevelForFlushing
MultipleLogOutput::Pointer m_Output
RealTimeClock::Pointer m_Clock

Detailed Description

Class LoggerBase is meant for logging information during a run.

Author:
Hee-Su Kim, Compute Science Dept. Kyungpook National University, ISIS Center, Georgetown University.

Definition at line 46 of file itkLoggerBase.h.


Member Typedef Documentation

typedef SmartPointer<const Self> itk::LoggerBase::ConstPointer
 

Reimplemented from itk::Object.

Reimplemented in itk::Logger, and itk::ThreadLogger.

Definition at line 54 of file itkLoggerBase.h.

typedef MultipleLogOutput::OutputType itk::LoggerBase::OutputType
 

Reimplemented in itk::ThreadLogger.

Definition at line 59 of file itkLoggerBase.h.

typedef SmartPointer<Self> itk::LoggerBase::Pointer
 

Reimplemented from itk::Object.

Reimplemented in itk::Logger, and itk::ThreadLogger.

Definition at line 53 of file itkLoggerBase.h.

typedef LoggerBase itk::LoggerBase::Self
 

Smart pointer typedef support.

Reimplemented from itk::Object.

Reimplemented in itk::Logger, and itk::ThreadLogger.

Definition at line 51 of file itkLoggerBase.h.

typedef Object itk::LoggerBase::Superclass
 

Reimplemented from itk::Object.

Reimplemented in itk::Logger, and itk::ThreadLogger.

Definition at line 52 of file itkLoggerBase.h.


Member Enumeration Documentation

enum itk::LoggerBase::PriorityLevelType
 

Definition of types of messages. These codes will be used to regulate the level of detail of messages reported to the final outputs

Enumeration values:
MUSTFLUSH 
FATAL 
CRITICAL 
WARNING 
INFO 
DEBUG 
NOTSET 

Reimplemented in itk::ThreadLogger.

Definition at line 63 of file itkLoggerBase.h.


Constructor & Destructor Documentation

itk::LoggerBase::LoggerBase  )  [protected]
 

Constructor

virtual itk::LoggerBase::~LoggerBase  )  [protected, virtual]
 

Destructor


Member Function Documentation

virtual void itk::LoggerBase::AddLogOutput OutputType output  )  [virtual]
 

Registers another output stream with the multiple output.

Reimplemented in itk::ThreadLogger.

virtual std::string itk::LoggerBase::BuildFormattedEntry PriorityLevelType  level,
std::string const &  content
[virtual]
 

Provides a default formatted log entry

virtual void itk::LoggerBase::Flush  )  [virtual]
 

Reimplemented in itk::ThreadLogger.

virtual PriorityLevelType itk::LoggerBase::GetLevelForFlushing  )  const [inline, virtual]
 

Reimplemented in itk::ThreadLogger.

Definition at line 101 of file itkLoggerBase.h.

virtual const char* itk::LoggerBase::GetName  )  const [virtual]
 

virtual const char* itk::LoggerBase::GetNameOfClass  )  const [virtual]
 

Run-time type information (and related methods).

Reimplemented from itk::Object.

Reimplemented in itk::Logger, and itk::ThreadLogger.

virtual PriorityLevelType itk::LoggerBase::GetPriorityLevel  )  const [inline, virtual]
 

Get the priority level for the current logger. Only messages that have priorities equal or greater than the one set here will be posted to the current outputs

Reimplemented in itk::ThreadLogger.

Definition at line 91 of file itkLoggerBase.h.

virtual void itk::LoggerBase::PrintSelf std::ostream &  os,
Indent  indent
const [protected, virtual]
 

Print contents of a LoggerBase

Reimplemented from itk::Object.

Reimplemented in itk::ThreadLogger.

virtual void itk::LoggerBase::SetLevelForFlushing PriorityLevelType  level  )  [inline, virtual]
 

Reimplemented in itk::ThreadLogger.

Definition at line 96 of file itkLoggerBase.h.

virtual void itk::LoggerBase::SetName const char *  _arg  )  [virtual]
 

virtual void itk::LoggerBase::SetPriorityLevel PriorityLevelType  level  )  [inline, virtual]
 

Set the priority level for the current logger. Only messages that have priorities equal or greater than the one set here will be posted to the current outputs

Reimplemented in itk::ThreadLogger.

Definition at line 83 of file itkLoggerBase.h.

virtual void itk::LoggerBase::Write PriorityLevelType  level,
std::string const &  content
[virtual]
 

Reimplemented in itk::ThreadLogger.


Member Data Documentation

RealTimeClock::Pointer itk::LoggerBase::m_Clock [protected]
 

Definition at line 132 of file itkLoggerBase.h.

PriorityLevelType itk::LoggerBase::m_LevelForFlushing [protected]
 

Definition at line 128 of file itkLoggerBase.h.

MultipleLogOutput::Pointer itk::LoggerBase::m_Output [protected]
 

Definition at line 130 of file itkLoggerBase.h.

PriorityLevelType itk::LoggerBase::m_PriorityLevel [protected]
 

Definition at line 126 of file itkLoggerBase.h.


The documentation for this class was generated from the following file:
Generated at Thu May 25 01:41:24 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000