Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitkLogMessage.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkLogMessage_h
14 #define mitkLogMessage_h
15 
16 #include <mitkLogLevel.h>
17 
18 #include <string>
19 
20 #include <MitkLogExports.h>
21 
22 namespace mitk
23 {
30  {
31  public:
32  LogMessage(const LogLevel level, const std::string& filePath, const int lineNumber, const std::string& functionName);
33 
36  const LogLevel Level;
37 
40  const std::string FilePath;
41 
44  const int LineNumber;
45 
48  const std::string FunctionName;
49 
52  std::string ModuleName;
53 
56  std::string Category;
57 
60  std::string Message;
61  };
62 }
63 
64 #endif
mitkLogLevel.h
mitk::LogLevel
LogLevel
Message/event levels of the MITK log mechanism.
Definition: mitkLogLevel.h:20
mitk::LogMessage::FilePath
const std::string FilePath
File name of the source file where the log message was emitted.
Definition: mitkLogMessage.h:40
mitk::LogMessage::FunctionName
const std::string FunctionName
Name of the method where the log message was emitted.
Definition: mitkLogMessage.h:48
mitk::LogMessage::Category
std::string Category
Category of the log event, which was defined by the user.
Definition: mitkLogMessage.h:56
mitk::LogMessage::LineNumber
const int LineNumber
Line of the source source file where the log message was emitted.
Definition: mitkLogMessage.h:44
mitk::LogMessage::ModuleName
std::string ModuleName
Name of the module where the log message was emitted.
Definition: mitkLogMessage.h:52
mitk::LogMessage
A single log message (log event) of the MITK log mechanism.
Definition: mitkLogMessage.h:29
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
MITKLOG_EXPORT
#define MITKLOG_EXPORT
Definition: MitkLogExports.h:15
mitk::LogMessage::Level
const LogLevel Level
Log level of the emitted log message.
Definition: mitkLogMessage.h:36
mitk::LogMessage::Message
std::string Message
The actual log message.
Definition: mitkLogMessage.h:60
MitkLogExports.h