A copy of \Psr\Log\LoggerTrait that uses RFC 5424 compliant log levels.
Internal Drupal logger implementations should use this trait instead of \Psr\Log\LoggerTrait. Callers of those implementations are responsible for translating any other log level format to RFC 5424 compliant integers.
https://groups.google.com/forum/#!topic/php-fig/Rc5YDhNdGz4
https://www.drupal.org/node/2267545
Name | Modifiers | Type | Description |
---|---|---|---|
RfcLoggerTrait::alert | public | function | Action must be taken immediately. Overrides LoggerInterface::alert |
RfcLoggerTrait::critical | public | function | Critical conditions. Overrides LoggerInterface::critical |
RfcLoggerTrait::debug | public | function | Detailed debug information. Overrides LoggerInterface::debug |
RfcLoggerTrait::emergency | public | function | System is unusable. Overrides LoggerInterface::emergency |
RfcLoggerTrait::error | public | function | Runtime errors that do not require immediate action but should typically be logged and monitored. Overrides LoggerInterface::error |
RfcLoggerTrait::info | public | function | Interesting events. Overrides LoggerInterface::info |
RfcLoggerTrait::log | abstract public | function | |
RfcLoggerTrait::notice | public | function | Normal but significant events. Overrides LoggerInterface::notice |
RfcLoggerTrait::warning | public | function | Exceptional occurrences that are not errors. Overrides LoggerInterface::warning |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Logger!RfcLoggerTrait.php/trait/RfcLoggerTrait/8.1.x