21 #define GRT_DLL_EXPORTS 28 void Log::setProceedingText(std::string proceedingText){
setKey( proceedingText ); }
29 std::string Log::getProceedingText()
const{
return key; }
32 #ifdef GRT_CXX11_ENABLED 33 std::mutex Log::logMutex;
37 bool InfoLog::infoLoggingEnabled =
true;
40 bool InfoLog::enableLogging(
bool loggingEnabled){
41 infoLoggingEnabled = loggingEnabled;
42 return infoLoggingEnabled;
46 observerManager.registerObserver( observer );
52 return observerManager.removeObserver(observer);
55 bool InfoLog::loggingEnabled()
const {
return infoLoggingEnabled; }
std::string key
The key that will be written at the start of each log.
static bool baseLoggingEnabled
This controls logging across all Log instances, as opposed to a single instance.
virtual bool setKey(const std::string &key)
sets the key that gets written at the start of each message, this will be written in the format 'key ...
virtual bool setInstanceLoggingEnabled(const bool loggingEnabled)
sets if logging is enabled for this specific instance