Implemented new command-line options replacing --warning-level.

This commit is contained in:
2016-12-01 17:18:58 +01:00
parent cfce6b1bbd
commit 9e1cdaaa51
4 changed files with 48 additions and 22 deletions

View File

@@ -30,8 +30,10 @@ class Logger
ColorStream &outputStream();
ColorStream &errorStream();
// The level from which on messages should be printed
// The priority from which on messages should be printed
void setLogPriority(Priority logPriority);
// Messages with this priority (or higher) will terminate the programs execution
void setAbortPriority(Priority abortPriority);
void setColorPolicy(ColorStream::ColorPolicy colorPolicy);
void log(Priority priority, const char *message);
@@ -44,6 +46,7 @@ class Logger
ColorStream m_errorStream;
Priority m_logPriority;
Priority m_abortPriority;
};
////////////////////////////////////////////////////////////////////////////////////////////////////