public function LoggerChannel::log in Service Container 7.2
Same name and namespace in other branches
- 7 src/Logger/LoggerChannel.php \Drupal\service_container\Logger\LoggerChannel::log()
Logs with an arbitrary level.
Parameters
mixed $level:
string $message:
array $context:
Return value
null
Overrides LoggerInterface::log
File
- src/
Logger/ LoggerChannel.php, line 51 - Contains \Drupal\service_container\Logger\LoggerChannel.
Class
- LoggerChannel
- Defines a logger channel that most implementations will use.
Namespace
Drupal\service_container\LoggerCode
public function log($level, $message, array $context = array()) {
$context += array(
'channel' => $this->channel,
);
// @codeCoverageIgnore
foreach ($this
->sortLoggers() as $logger) {
$logger
->log($level, $message, $context);
}
}