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:
parent
423cc62e12
commit
4e7e748ce5
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -64,6 +64,8 @@ public:
|
||||
*/
|
||||
void setFileLoggerSettings(const FileLoggerSettings& settings) { fileLogger->setFileLoggerSettings(settings); }
|
||||
|
||||
void setMinMessageLevel(QtMsgType& msgLevel);
|
||||
|
||||
private:
|
||||
/** First console logger */
|
||||
Logger* consoleLogger;
|
||||
|
Loading…
Reference in New Issue
Block a user