open_iA 2023.02
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
iALogger Class Referenceabstract

Base interface for logging implementation in iALog.cpp. More...

#include <iALogger.h>

Inheritance diagram for iALogger:
[legend]

Public Member Functions

 iALogger ()
 
virtual ~iALogger ()
 
virtual void log (iALogLevel level, QString const &msg)=0
 Log a given message with the given log level.
 
iALogLevel logLevel () const
 Retrieve current log level.
 
virtual void setLogLevel (iALogLevel level)
 Sets the current loglevel of this logger.
 

Protected Attributes

iALogLevel m_logLevel
 

Detailed Description

Base interface for logging implementation in iALog.cpp.

Constructor & Destructor Documentation

◆ iALogger()

iALogger::iALogger ( )

◆ ~iALogger()

iALogger::~iALogger ( )
virtual

Member Function Documentation

◆ log()

virtual void iALogger::log ( iALogLevel  level,
QString const &  msg 
)
pure virtual

Log a given message with the given log level.

The actual implementations (classes derived from iALogger) determine what happens with this information.

Parameters
levelthe severity of the message, see iALogLevel.
msgthe message to be logged.

Implemented in iALogWidget.

◆ logLevel()

iALogLevel iALogger::logLevel ( ) const

Retrieve current log level.

◆ setLogLevel()

void iALogger::setLogLevel ( iALogLevel  level)
virtual

Sets the current loglevel of this logger.

Only messages with a log level equal to or higher than the given level should be reported (loggers need to implement this based on the m_logLevel member below).

Reimplemented in iALogWidget.

Member Data Documentation

◆ m_logLevel

iALogLevel iALogger::m_logLevel
protected

The documentation for this class was generated from the following files: