ITK
6.0.0
Insight Toolkit
|
#include <itkThreadLogger.h>
Providing logging service as a separate thread.
Definition at line 41 of file itkThreadLogger.h.
Public Member Functions | |
void | AddLogOutput (OutputType *output) override |
void | Flush () override |
virtual DelayType | GetDelay () const |
PriorityLevelEnum | GetLevelForFlushing () const override |
const char * | GetNameOfClass () const override |
PriorityLevelEnum | GetPriorityLevel () const override |
virtual void | SetDelay (DelayType delay) |
void | SetLevelForFlushing (PriorityLevelEnum level) override |
void | SetPriorityLevel (PriorityLevelEnum level) override |
void | Write (PriorityLevelEnum level, std::string const &content) override |
Public Member Functions inherited from itk::LoggerBase | |
virtual std::string | BuildFormattedEntry (PriorityLevelEnum level, std::string const &content) |
void | Critical (std::string const &message) |
void | Debug (std::string const &message) |
void | Error (std::string const &message) |
void | Fatal (std::string const &message) |
virtual const char * | GetName () const |
void | Info (std::string const &message) |
virtual void | SetName (const char *_arg) |
void | Warning (std::string const &message) |
virtual void | SetTimeStampFormat (const TimeStampFormatEnum _arg) |
virtual const TimeStampFormatEnum & | GetTimeStampFormat () const |
virtual void | SetHumanReadableFormat (const char *_arg) |
virtual const char * | GetHumanReadableFormat () const |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
LightObject::Pointer | CreateAnother () const override |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary () |
const MetaDataDictionary & | GetMetaDataDictionary () const |
virtual ModifiedTimeType | GetMTime () const |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
void | Register () const override |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) const |
void | SetDebug (bool debugFlag) const |
void | SetReferenceCount (int) override |
void | UnRegister () const noexcept override |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () const |
Public Member Functions inherited from itk::LightObject | |
Pointer | Clone () const |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
void | Print (std::ostream &os, Indent indent=0) const |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Logger | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Protected Member Functions | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
void | ThreadFunction () |
ThreadLogger () | |
~ThreadLogger () override | |
Protected Member Functions inherited from itk::Logger | |
Logger () | |
~Logger () override | |
Protected Member Functions inherited from itk::LoggerBase | |
LoggerBase () | |
virtual void | PrivateFlush () |
~LoggerBase () override | |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
~Object () override | |
Protected Member Functions inherited from itk::LightObject | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Private Member Functions | |
void | InternalFlush () |
Private Attributes | |
DelayType | m_Delay {} |
std::queue< PriorityLevelEnum > | m_LevelQ {} |
std::queue< std::string > | m_MessageQ {} |
std::mutex | m_Mutex {} |
std::queue< OperationType > | m_OperationQ {} |
std::queue< OutputType::Pointer > | m_OutputQ {} |
std::atomic< bool > | m_TerminationRequested {} |
std::thread | m_Thread {} |
Additional Inherited Members | |
Protected Attributes inherited from itk::LoggerBase | |
RealTimeClock::Pointer | m_Clock {} |
std::string | m_HumanReadableFormat {} |
PriorityLevelEnum | m_LevelForFlushing {} |
MultipleLogOutput::Pointer | m_Output {} |
PriorityLevelEnum | m_PriorityLevel {} |
TimeStampFormatEnum | m_TimeStampFormat {} |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount {} |
using itk::ThreadLogger::ConstPointer = SmartPointer<const Self> |
Definition at line 47 of file itkThreadLogger.h.
using itk::ThreadLogger::DelayType = unsigned int |
Definition at line 59 of file itkThreadLogger.h.
Definition at line 55 of file itkThreadLogger.h.
using itk::ThreadLogger::Pointer = SmartPointer<Self> |
Definition at line 46 of file itkThreadLogger.h.
Definition at line 57 of file itkThreadLogger.h.
using itk::ThreadLogger::Self = ThreadLogger |
Definition at line 44 of file itkThreadLogger.h.
using itk::ThreadLogger::Superclass = Logger |
Definition at line 45 of file itkThreadLogger.h.
Definition of types of operations for ThreadLogger.
Enumerator | |
---|---|
SET_PRIORITY_LEVEL | |
SET_LEVEL_FOR_FLUSHING | |
ADD_LOG_OUTPUT | |
WRITE | |
FLUSH |
Definition at line 62 of file itkThreadLogger.h.
|
protected |
Constructor
|
overrideprotected |
Destructor
|
overridevirtual |
Registers another output stream with the multiple output.
Reimplemented from itk::LoggerBase.
|
overridevirtual |
Reimplemented from itk::LoggerBase.
|
virtual |
Get the delay in milliseconds between checks to see if there are any low priority messages to be processed.
|
overridevirtual |
Reimplemented from itk::LoggerBase.
|
overridevirtual |
Reimplemented from itk::Logger.
|
overridevirtual |
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 from itk::LoggerBase.
|
private |
|
static |
New macro for creation of a Smart Pointer
|
overrideprotectedvirtual |
Print contents of a ThreadLogger
Reimplemented from itk::LoggerBase.
|
virtual |
Set the delay in milliseconds between checks to see if there are any low priority messages to be processed.
|
overridevirtual |
Reimplemented from itk::LoggerBase.
|
overridevirtual |
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 from itk::LoggerBase.
|
protected |
|
overridevirtual |
Reimplemented from itk::LoggerBase.
|
private |
Definition at line 143 of file itkThreadLogger.h.
|
private |
Definition at line 137 of file itkThreadLogger.h.
|
private |
Definition at line 135 of file itkThreadLogger.h.
|
mutableprivate |
Definition at line 141 of file itkThreadLogger.h.
|
private |
Definition at line 133 of file itkThreadLogger.h.
|
private |
Definition at line 139 of file itkThreadLogger.h.
|
private |
Definition at line 131 of file itkThreadLogger.h.
|
private |
Definition at line 129 of file itkThreadLogger.h.