You are here

abstract public function LoggerTrait::log in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/psr/log/Psr/Log/LoggerTrait.php \Psr\Log\LoggerTrait::log()

Logs with an arbitrary level.

Parameters

mixed $level:

string $message:

array $context:

Return value

null

8 calls to LoggerTrait::log()
LoggerTrait::alert in vendor/psr/log/Psr/Log/LoggerTrait.php
Action must be taken immediately.
LoggerTrait::critical in vendor/psr/log/Psr/Log/LoggerTrait.php
Critical conditions.
LoggerTrait::debug in vendor/psr/log/Psr/Log/LoggerTrait.php
Detailed debug information.
LoggerTrait::emergency in vendor/psr/log/Psr/Log/LoggerTrait.php
System is unusable.
LoggerTrait::error in vendor/psr/log/Psr/Log/LoggerTrait.php
Runtime errors that do not require immediate action but should typically be logged and monitored.

... See full list

1 method overrides LoggerTrait::log()
LoggerChannel::log in core/lib/Drupal/Core/Logger/LoggerChannel.php
Logs with an arbitrary level.

File

vendor/psr/log/Psr/Log/LoggerTrait.php, line 130

Class

LoggerTrait
This is a simple Logger trait that classes unable to extend AbstractLogger (because they extend another class, etc) can include.

Namespace

Psr\Log

Code

public abstract function log($level, $message, array $context = array());