33 MdfLogStream({__LINE__,0,__FILE__,__func__}, \
34 MdfLogSeverity::kTrace)
36 MdfLogStream({__LINE__,0,__FILE__,__func__}, \
37 MdfLogSeverity::kDebug)
39 MdfLogStream({__LINE__,0,__FILE__,__func__}, \
40 MdfLogSeverity::kInfo)
42 MdfLogStream({__LINE__,0,__FILE__,__func__}, \
43 MdfLogSeverity::kError)
75 const std::string& text);
MDF log stream interface.
Definition mdflogstream.h:53
virtual void LogString(const MdfLocation &location, MdfLogSeverity severity, const std::string &text)
Defines the logging function.
static void SetLogFunction1(const MdfLogFunction1 &func)
Sets a log function.
MdfLocation location_
File and function location.
Definition mdflogstream.h:70
MdfLogSeverity severity_
Log level of the stream.
Definition mdflogstream.h:71
static void SetLogFunction2(const MdfLogFunction2 &func)
Sets a log function.
~MdfLogStream() override
Destructor.
MdfLogStream(MdfLocation location, MdfLogSeverity severity)
Constructor.
Factory class for the MDF library.
Main namespace for the MDF library.
Definition canmessage.h:17
std::function< void(MdfLogSeverity severity, const std::string &function, const std::string &text)> MdfLogFunction2
MDF logging function definition.
Definition mdffactory.h:43
MdfLogSeverity
Defines the log severity level.
Definition mdffactory.h:30
std::function< void(const MdfLocation &location, MdfLogSeverity severity, const std::string &text)> MdfLogFunction1
MDF log function definition.
Definition mdflogstream.h:46
This is a replacement for the std::source_location library. The standard source_location library cann...
Definition mdflogstream.h:20
int line
Source code line.
Definition mdflogstream.h:21
std::string function
Source code function.
Definition mdflogstream.h:24
std::string file
Source code file name (avoid path).
Definition mdflogstream.h:23
int column
Source code column.
Definition mdflogstream.h:22