You are here

public function LoggerBase::warning in Service Container 7.2

Same name and namespace in other branches
  1. 7 src/Logger/LoggerBase.php \Drupal\service_container\Logger\LoggerBase::warning()

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

src/Logger/LoggerBase.php, line 49
Contains \Drupal\service_container\Logger\LoggerBase.

Class

LoggerBase
Provides a common base class for loggers to reduce boilerplate code.

Namespace

Drupal\service_container\Logger

Code

public function warning($message, array $context = array()) {
  return $this
    ->log(LogLevel::WARNING, $message, $context);
}