1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 01:18:38 -05:00

Logging: console with file logger: added minimum message level setter

This commit is contained in:
f4exb 2017-11-12 00:01:47 +01:00
parent 423cc62e12
commit 4e7e748ce5
2 changed files with 11 additions and 0 deletions

View File

@ -37,3 +37,12 @@ void LoggerWithFile::clear(const bool buffer, const bool variables)
fileLogger->clear(buffer,variables);
}
}
void LoggerWithFile::setMinMessageLevel(QtMsgType& msgLevel)
{
consoleLogger->setMinMessageLevel(msgLevel);
if (fileLogger) {
fileLogger->setMinMessageLevel(msgLevel);
}
}

View File

@ -64,6 +64,8 @@ public:
*/
void setFileLoggerSettings(const FileLoggerSettings& settings) { fileLogger->setFileLoggerSettings(settings); }
void setMinMessageLevel(QtMsgType& msgLevel);
private:
/** First console logger */
Logger* consoleLogger;