#72583get unified log levels
Description
there are two functions for logging: TYPO3\CMS\Core\Utility\GeneralUtility::devLog() and *TYPO3\CMS\Core\Utility\GeneralUtility::sysLog()*
both have a parameter $severity.
for sysLog() there are constants:
// Severity constants used by \TYPO3\CMS\Core\Utility\GeneralUtility::sysLog()
const SYSLOG_SEVERITY_INFO = 0;
const SYSLOG_SEVERITY_NOTICE = 1;
const SYSLOG_SEVERITY_WARNING = 2;
const SYSLOG_SEVERITY_ERROR = 3;
const SYSLOG_SEVERITY_FATAL = 4;
devLog() (should) accept the values -1 to 3 as stated in the doc-header:
* @param integer $severity Severity: 0 is info, 1 is notice, 2 is warning, 3 is fatal error, -1 is "OK" message
it would be nice to have unique values and one set of constants like:
// Severity constants used by \TYPO3\CMS\Core\Utility\GeneralUtility::sysLog()
// and \TYPO3\CMS\Core\Utility\GeneralUtility::devLog()
const LOG_SEVERITY_OK = -1;
const LOG_SEVERITY_INFO = 0;
const LOG_SEVERITY_NOTICE = 1;
const LOG_SEVERITY_WARNING = 2;
const LOG_SEVERITY_ERROR = 3;
const LOG_SEVERITY_FATAL = 4;Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.