21 #ifndef GRT_ERROR_LOG_HEADER 22 #define GRT_ERROR_LOG_HEADER 24 #include "ObserverManager.h" 33 this->message = message;
39 std::string getProceedingText()
const {
43 std::string getMessage()
const {
55 loggingEnabledPtr = &errorLoggingEnabled;
69 const Log *rhsBase = &rhs;
73 this->loggingEnabledPtr = &errorLoggingEnabled;
83 return errorLoggingEnabled;
91 errorLoggingEnabled = enabled;
99 GRT_DEPRECATED_MSG(
"enableLogging is deprecated, use setLoggingEnabled instead",
static bool enableLogging(
bool loggingEnabled) );
108 static bool errorLoggingEnabled;
113 #endif //GRT_ERROR_LOG_HEADER
virtual void triggerCallback(const std::string &message) const
This callback can be used to propagate messages to other interfaces (e.g., a GUI built on top of the ...
static bool getLoggingEnabled()
returns true if logging is enabled for this class, this supersedes the specific instance logging ...
Log(const std::string &key="")
defines the log default constructor
static bool setLoggingEnabled(const bool enabled)
sets if logging is enabled for this class, this supersedes the specific instance logging ...
The Log class provides the base class for all GRT logging functionality.
Log & operator=(const Log &rhs)
defines the log equals operator