Medical Imaging Interaction Toolkit  2018.4.99-65942676
Medical Imaging Interaction Toolkit
mbilog::LogMessage Class Reference

An object of this class represents a single logging message (logging event) of the mbi logging mechanism. Logging message should only be generated by the macros in the class mbilog.h. More...

#include <mbilogLogMessage.h>

Collaboration diagram for mbilog::LogMessage:

Public Member Functions

 LogMessage (const int _level, const char *_filePath, const int _lineNumber, const char *_functionName)
 

Public Attributes

const int level
 Logging level which is defined in the enum mbilogLoggingTypes.h TODO: convert to enum. More...
 
const char * filePath
 File name of the source file where the logging message was emitted which is generated by the macros in file mbilog.h. More...
 
const int lineNumber
 Line of the source source file where the logging message was emitted which is generated by the macros in file mbilog.h. More...
 
const char * functionName
 Name of the method where the logging message was emitted which is generated by the macros in file mbilog.h. More...
 
const char * moduleName
 Name of the module where the logging message was emitted which is generated by the macros in file mbilog.h. Is empty if there module defined. More...
 
std::string category
 Category of the logging event, which was defined by the user. More...
 
std::string message
 The actual logging message. More...
 

Detailed Description

An object of this class represents a single logging message (logging event) of the mbi logging mechanism. Logging message should only be generated by the macros in the class mbilog.h.

Documentation

Definition at line 30 of file mbilogLogMessage.h.

Constructor & Destructor Documentation

◆ LogMessage()

mbilog::LogMessage::LogMessage ( const int  _level,
const char *  _filePath,
const int  _lineNumber,
const char *  _functionName 
)
inline

Definition at line 64 of file mbilogLogMessage.h.

Member Data Documentation

◆ category

std::string mbilog::LogMessage::category

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

Definition at line 59 of file mbilogLogMessage.h.

Referenced by mbilog::PseudoStream::operator()().

◆ filePath

const char* mbilog::LogMessage::filePath

File name of the source file where the logging message was emitted which is generated by the macros in file mbilog.h.

Definition at line 42 of file mbilogLogMessage.h.

◆ functionName

const char* mbilog::LogMessage::functionName

Name of the method where the logging message was emitted which is generated by the macros in file mbilog.h.

Definition at line 48 of file mbilogLogMessage.h.

◆ level

const int mbilog::LogMessage::level

Logging level which is defined in the enum mbilogLoggingTypes.h TODO: convert to enum.

Definition at line 36 of file mbilogLogMessage.h.

◆ lineNumber

const int mbilog::LogMessage::lineNumber

Line of the source source file where the logging message was emitted which is generated by the macros in file mbilog.h.

Definition at line 45 of file mbilogLogMessage.h.

◆ message

std::string mbilog::LogMessage::message

The actual logging message.

Definition at line 62 of file mbilogLogMessage.h.

Referenced by mbilog::PseudoStream::~PseudoStream().

◆ moduleName

const char* mbilog::LogMessage::moduleName

Name of the module where the logging message was emitted which is generated by the macros in file mbilog.h. Is empty if there module defined.

Definition at line 54 of file mbilogLogMessage.h.

Referenced by mbilog::PseudoStream::~PseudoStream().


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