Class used for handling logging tasks. More...
#include <igstkLogger.h>
Public Types | |
typedef Logger | Self |
General Typedefs. | |
typedef ::itk::Logger | Superclass |
typedef ::itk::SmartPointer< Self > | Pointer |
typedef ::itk::SmartPointer < const Self > | ConstPointer |
Public Member Functions | |
virtual const char * | GetNameOfClass () const |
We do not use macros for New(), GetNameOfClass() since igstkLogger.h is included in igstkMacros.h. | |
virtual bool | ShouldBuildMessage (PriorityLevelType message_level) |
Returns true if the priority level of the message will cause the message to be written to a log. | |
Static Public Member Functions | |
static Pointer | New (void) |
Makes a new Logger and returns a smart pointer to it. | |
Protected Member Functions | |
Logger () | |
Constructor. | |
virtual | ~Logger () |
Destructor. |
Class used for handling logging tasks.
This class derives from the ITK Logger. Its purpose is two-fold. First, it specifies the default priority level of messages. Second, it implements the ShouldBuildMessage API which enables lazy evaluation of messages passed to a logger through the logging macros.
Definition at line 36 of file igstkLogger.h.
typedef Logger igstk::Logger::Self |
General Typedefs.
Definition at line 40 of file igstkLogger.h.
typedef ::itk::Logger igstk::Logger::Superclass |
Definition at line 41 of file igstkLogger.h.
typedef ::itk::SmartPointer< Self > igstk::Logger::Pointer |
Definition at line 42 of file igstkLogger.h.
typedef ::itk::SmartPointer< const Self > igstk::Logger::ConstPointer |
Definition at line 43 of file igstkLogger.h.
igstk::Logger::Logger | ( | ) | [protected] |
Constructor.
virtual igstk::Logger::~Logger | ( | ) | [protected, virtual] |
Destructor.
virtual const char* igstk::Logger::GetNameOfClass | ( | ) | const [inline, virtual] |
We do not use macros for New(), GetNameOfClass() since igstkLogger.h is included in igstkMacros.h.
Definition at line 49 of file igstkLogger.h.
static Pointer igstk::Logger::New | ( | void | ) | [inline, static] |
Makes a new Logger and returns a smart pointer to it.
Definition at line 55 of file igstkLogger.h.
virtual bool igstk::Logger::ShouldBuildMessage | ( | PriorityLevelType | message_level | ) | [virtual] |
Returns true if the priority level of the message will cause the message to be written to a log.