Ref T215, severity can be set for validation

This commit is contained in:
Klaus Basan
2018-01-02 02:24:38 +01:00
parent b68e232f38
commit 77cd49cb0f

View File

@@ -82,6 +82,9 @@ namespace BlackMisc
//! Set the severity to error, providing a format string. //! Set the severity to error, providing a format string.
Derived &error(const QString &format) { return log(SeverityError, format); } Derived &error(const QString &format) { return log(SeverityError, format); }
//! Set the severity to s, providing a format string, and adding the validation category.
Derived &validation(StatusSeverity s, const QString &format) { setValidation(); return log(s, format); }
//! Set the severity to info, providing a format string, and adding the validation category. //! Set the severity to info, providing a format string, and adding the validation category.
Derived &validationInfo(const QString &format) { setValidation(); return log(SeverityInfo, format); } Derived &validationInfo(const QString &format) { setValidation(); return log(SeverityInfo, format); }