21 #ifndef GRT_WARNING_LOG_HEADER 22 #define GRT_WARNING_LOG_HEADER 25 #include "ObserverManager.h" 33 this->message = message;
39 std::string getProceedingText()
const {
43 std::string getMessage()
const {
69 const Log *rhsBase = &rhs;
73 this->loggingEnabledPtr = &warningLoggingEnabled;
83 return warningLoggingEnabled;
91 warningLoggingEnabled = enabled;
99 GRT_DEPRECATED_MSG(
"enableLogging is deprecated, use setLoggingEnabled instead",
static bool enableLogging(
bool loggingEnabled) );
100 GRT_DEPRECATED_MSG(
"loggingEnabled is deprecated, use getLoggingEnabled instead",
bool loggingEnabled()
const );
103 virtual void triggerCallback(
const std::string &message )
const{
109 static bool warningLoggingEnabled;
114 #endif //GRT_WARNING_LOG_HEADER
static bool getLoggingEnabled()
returns true if logging is enabled for this class, this supersedes the specific instance logging ...
static bool setLoggingEnabled(const bool enabled)
sets if logging is enabled for this class, this supersedes the specific instance logging ...
bool * loggingEnabledPtr
This is a hack that enables variables to be updated inside const methods.
The Log class provides the base class for all GRT logging functionality.