Logging severity levels
Same name in other branches
- 7.x includes/bootstrap.inc \logging_severity_levels
- 8.9.x core/lib/Drupal/Core/Logger/RfcLogLevel.php \Drupal\Core\Logger\logging_severity_levels
- 10 core/lib/Drupal/Core/Logger/RfcLogLevel.php \Drupal\Core\Logger\logging_severity_levels
- 11.x core/lib/Drupal/Core/Logger/RfcLogLevel.php \Drupal\Core\Logger\logging_severity_levels
Logging severity levels as defined in RFC 5424.
The constant definitions of this class correspond to the logging severity levels defined in RFC 5424, section 6.2.1. PHP supplies predefined LOG_* constants for use in the syslog() function, but their values on Windows builds do not correspond to RFC 5424. The associated PHP bug report was closed with the comment, "And it's also not a bug, as Windows just have less log levels," and "So the behavior you're seeing is perfectly normal."
See also
https://tools.ietf.org/html/rfc5424#section-6.2.1
http://bugs.php.net/bug.php?id=18090
http://php.net/manual/function.syslog.php
http://php.net/manual/network.constants.php
\Drupal\Core\Logger\RfcLogLevel::getLevels()
File
-
core/
lib/ Drupal/ Core/ Logger/ RfcLogLevel.php, line 7
Functions
Title Sort descending | File name | Summary |
---|---|---|
drupal_error_levels | core/ |
Maps PHP error constants to watchdog severity levels. |
RfcLogLevel::getLevels | core/ |
Returns a list of severity levels, as defined in RFC 5424. |
Classes
Title Sort descending | File name | Summary |
---|---|---|
RfcLogLevel | core/ |
Defines various logging severity levels. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.