Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitk::LogMessage Struct Reference

A single log message (log event) of the MITK log mechanism. More...

#include <mitkLogMessage.h>

Collaboration diagram for mitk::LogMessage:

Public Member Functions

 LogMessage (const LogLevel level, const std::string &filePath, const int lineNumber, const std::string &functionName)
 

Public Attributes

const LogLevel Level
 Log level of the emitted log message. More...
 
const std::string FilePath
 File name of the source file where the log message was emitted. More...
 
const int LineNumber
 Line of the source source file where the log message was emitted. More...
 
const std::string FunctionName
 Name of the method where the log message was emitted. More...
 
std::string ModuleName
 Name of the module where the log message was emitted. More...
 
std::string Category
 Category of the log event, which was defined by the user. More...
 
std::string Message
 The actual log message. More...
 

Detailed Description

A single log message (log event) of the MITK log mechanism.

Logging messages should only be generated by the macros provided by mitkLog.h

Definition at line 29 of file mitkLogMessage.h.

Constructor & Destructor Documentation

◆ LogMessage()

mitk::LogMessage::LogMessage ( const LogLevel  level,
const std::string &  filePath,
const int  lineNumber,
const std::string &  functionName 
)

Member Data Documentation

◆ Category

std::string mitk::LogMessage::Category

Category of the log event, which was defined by the user.

Definition at line 56 of file mitkLogMessage.h.

◆ FilePath

const std::string mitk::LogMessage::FilePath

File name of the source file where the log message was emitted.

Definition at line 40 of file mitkLogMessage.h.

◆ FunctionName

const std::string mitk::LogMessage::FunctionName

Name of the method where the log message was emitted.

Definition at line 48 of file mitkLogMessage.h.

◆ Level

const LogLevel mitk::LogMessage::Level

Log level of the emitted log message.

Definition at line 36 of file mitkLogMessage.h.

◆ LineNumber

const int mitk::LogMessage::LineNumber

Line of the source source file where the log message was emitted.

Definition at line 44 of file mitkLogMessage.h.

◆ Message

std::string mitk::LogMessage::Message

The actual log message.

Definition at line 60 of file mitkLogMessage.h.

◆ ModuleName

std::string mitk::LogMessage::ModuleName

Name of the module where the log message was emitted.

Definition at line 52 of file mitkLogMessage.h.


The documentation for this struct was generated from the following file: