public RfcLoggerTrait::warning($message, array $context = array())
Exceptional occurrences that are not errors.
Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.
Parameters
string $message:
array $context:
Return value
null
Overrides LoggerInterface::warning
File
- core/lib/Drupal/Core/Logger/RfcLoggerTrait.php, line 48
Class
- RfcLoggerTrait
- A copy of \Psr\Log\LoggerTrait that uses RFC 5424 compliant log levels.
Namespace
Drupal\Core\Logger
Code
public function warning($message, array $context = array()) { $this->log(RfcLogLevel::WARNING, $message, $context); }
Please login to continue.