9 #include <framework/logging/LogMethod.h> 
   10 #include <framework/logging/LogConfig.h> 
   11 #include <framework/logging/LogMessage.h> 
   12 #include <framework/logging/LogSystem.h> 
   19 LogMethod::LogMethod(
const char* package, 
string  function, 
string  file, 
unsigned int line): m_package(package),
 
   20   m_function(std::move(function)), m_file(std::move(file)), m_line(line)
 
   24     string messageText = 
"--> Entering method '" + 
m_function + 
"'";
 
   33   if (std::uncaught_exceptions() > 0) uncaughtExc = 
"(" + std::to_string(std::uncaught_exceptions()) +
 
   34                                                       " uncaught exceptions pending)";
 
   38     string messageText = 
"<-- Leaving method '" + 
m_function + 
"' " + uncaughtExc;
 
@ c_Info
Info: for informational messages, e.g.
~LogMethod()
The LogMethod destructor.
unsigned int m_line
The line number in the source code where the message was sent from.
const char * m_package
The package name where the message was sent from.
std::string m_file
The file name where the message was sent from.
std::string m_function
The function name where the message was sent from.
bool sendMessage(LogMessage &&message)
Sends a log message using the log connection object.
static LogSystem & Instance()
Static method to get a reference to the LogSystem instance.
Abstract base class for different kinds of events.