void Logger::disableConsoleLogging() { Mutex::ScopedLock lock(loggerMutex); if (consoleChannel) { SplitterChannel *splitter = getSplitterChannel(); assert(splitter && "could not get splitter channel from logger"); splitter->removeChannel(consoleChannel); consoleChannel = 0; } }
void Logger::disableFileLogging() { Mutex::ScopedLock lock(loggerMutex); if (simpleFileChannel) { SplitterChannel *splitter = getSplitterChannel(); splitter->removeChannel(simpleFileChannel); simpleFileChannel = 0; logFileName = ""; } }