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

itk::Logger Class Reference
[OS System Objects]

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

#include <itkLogger.h>

Inheritance diagram for itk::Logger:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef Logger 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 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 ()

Static Public Member Functions

static Pointer New ()

Protected Member Functions

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

Protected Attributes

PriorityLevelType m_PriorityLevel
PriorityLevelType m_LevelForFlushing
MultipleLogOutput::Pointer m_Output

Detailed Description

Class Logger 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 itkLogger.h.


Member Typedef Documentation

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

Reimplemented from itk::Object.

Reimplemented in itk::ThreadLogger.

Definition at line 54 of file itkLogger.h.

typedef MultipleLogOutput::OutputType itk::Logger::OutputType
 

Reimplemented in itk::ThreadLogger.

Definition at line 60 of file itkLogger.h.

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

Reimplemented from itk::Object.

Reimplemented in itk::ThreadLogger.

Definition at line 53 of file itkLogger.h.

typedef Logger itk::Logger::Self
 

Smart pointer typedef support.

Reimplemented from itk::Object.

Reimplemented in itk::ThreadLogger.

Definition at line 51 of file itkLogger.h.

typedef Object itk::Logger::Superclass
 

Reimplemented from itk::Object.

Reimplemented in itk::ThreadLogger.

Definition at line 52 of file itkLogger.h.


Member Enumeration Documentation

enum itk::Logger::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 66 of file itkLogger.h.


Constructor & Destructor Documentation

itk::Logger::Logger  )  [protected]
 

Constructor

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

Destructor


Member Function Documentation

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

Registers another output stream with the multiple output.

Reimplemented in itk::ThreadLogger.

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

Reimplemented in itk::ThreadLogger.

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

Reimplemented in itk::ThreadLogger.

Definition at line 102 of file itkLogger.h.

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

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

Run-time type information (and related methods).

Reimplemented from itk::Object.

Reimplemented in itk::ThreadLogger.

virtual PriorityLevelType itk::Logger::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 92 of file itkLogger.h.

static Pointer itk::Logger::New  )  [static]
 

New macro for creation of through a Smart Pointer

Reimplemented from itk::Object.

Reimplemented in itk::ThreadLogger.

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

Print contents of a Logger

Reimplemented from itk::Object.

Reimplemented in itk::ThreadLogger.

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

Reimplemented in itk::ThreadLogger.

Definition at line 97 of file itkLogger.h.

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

virtual void itk::Logger::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 84 of file itkLogger.h.

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

Reimplemented in itk::ThreadLogger.


Member Data Documentation

PriorityLevelType itk::Logger::m_LevelForFlushing [protected]
 

Definition at line 129 of file itkLogger.h.

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

Definition at line 131 of file itkLogger.h.

PriorityLevelType itk::Logger::m_PriorityLevel [protected]
 

Definition at line 127 of file itkLogger.h.


The documentation for this class was generated from the following file:
Generated at Tue Aug 30 17:04:26 2005 for ITK by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2000