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.
Hierarchy
- trait \Drupal\Core\Logger\RfcLoggerTrait
See also
https://groups.google.com/forum/#!topic/php-fig/Rc5YDhNdGz4
https://www.drupal.org/node/2267545
File
- core/lib/Drupal/Core/Logger/RfcLoggerTrait.php, line 15
Namespace
Drupal\Core\Logger
Members
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 |
Please login to continue.