Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkLog.h File Reference
#include <mitkLogBackendBase.h>
#include <sstream>
#include <MitkLogExports.h>

Go to the source code of this file.

Classes

class  mitk::PseudoLogStream
 Stream-based log message builder for the MITK log mechanism. More...
 
class  mitk::NullLogStream
 No-op log stream that silently discards all input. More...
 

Namespaces

 mitk
 Find image slices visible on a given plane.
 

Macros

#define MITKLOG_MODULENAME
 
#define MITK_INFO
 Log an informational message. More...
 
#define MITK_WARN
 Log a warning message. More...
 
#define MITK_ERROR
 Log an error message. More...
 
#define MITK_FATAL
 Log a fatal error message. More...
 
#define MITK_DEBUG
 

Functions

void MITKLOG_EXPORT mitk::RegisterBackend (LogBackendBase *backend)
 Register a log backend in the MITK log mechanism. More...
 
void MITKLOG_EXPORT mitk::UnregisterBackend (LogBackendBase *backend)
 Unregister a previously registered log backend. More...
 
void MITKLOG_EXPORT mitk::DistributeToBackends (LogMessage &message)
 Distribute a log message to all registered and enabled backends. More...
 
void MITKLOG_EXPORT mitk::EnableBackends (LogBackendBase::OutputType type)
 Enable all backends of the given output type. More...
 
void MITKLOG_EXPORT mitk::DisableBackends (LogBackendBase::OutputType type)
 Disable all backends of the given output type. More...
 
bool MITKLOG_EXPORT mitk::IsBackendEnabled (LogBackendBase::OutputType type)
 Check whether backends of the given output type are enabled. More...
 

Macro Definition Documentation

◆ MITK_DEBUG

#define MITK_DEBUG

Definition at line 390 of file mitkLog.h.

◆ MITK_ERROR

#define MITK_ERROR

Log an error message.

Creates a PseudoLogStream at LogLevel::Error with the current source location. Usage:

MITK_ERROR << "message";
#define MITK_ERROR
Log an error message.
Definition: mitkLog.h:372

Definition at line 372 of file mitkLog.h.

◆ MITK_FATAL

#define MITK_FATAL

Log a fatal error message.

Creates a PseudoLogStream at LogLevel::Fatal with the current source location. Usage:

MITK_FATAL << "message";
#define MITK_FATAL
Log a fatal error message.
Definition: mitkLog.h:379

Definition at line 379 of file mitkLog.h.

◆ MITK_INFO

#define MITK_INFO

Log an informational message.

Creates a PseudoLogStream at LogLevel::Info with the current source location. Usage:

MITK_INFO << "message";
#define MITK_INFO
Log an informational message.
Definition: mitkLog.h:358

Supports categories:

MITK_INFO("category") << "message";

Supports conditional output:

MITK_INFO(condition) << "message";

Definition at line 358 of file mitkLog.h.

◆ MITK_WARN

#define MITK_WARN

Log a warning message.

Creates a PseudoLogStream at LogLevel::Warn with the current source location. Usage:

MITK_WARN << "message";
#define MITK_WARN
Log a warning message.
Definition: mitkLog.h:365

Definition at line 365 of file mitkLog.h.

◆ MITKLOG_MODULENAME

#define MITKLOG_MODULENAME

Definition at line 28 of file mitkLog.h.