You are here

public function LoggerInterface::log in Service Container 7.2

Same name and namespace in other branches
  1. 7 lib/Psr/Log/LoggerInterface.php \Psr\Log\LoggerInterface::log()

Logs with an arbitrary level.

Parameters

mixed $level:

string $message:

array $context:

Return value

null

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

... See full list

3 methods override LoggerInterface::log()
LoggerChannel::log in src/Logger/LoggerChannel.php
Logs with an arbitrary level.
NullLogger::log in lib/Psr/Log/NullLogger.php
Logs with an arbitrary level.
WatchdogLogger::log in src/Logger/WatchdogLogger.php
Logs with an arbitrary level.

File

lib/Psr/Log/LoggerInterface.php, line 113

Class

LoggerInterface
Describes a logger instance

Namespace

Psr\Log

Code

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