You are here

abstract public function LoggerTrait::log in Service Container 7.2

Same name and namespace in other branches
  1. 7 lib/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 lib/Psr/Log/LoggerTrait.php
Action must be taken immediately.
LoggerTrait::critical in lib/Psr/Log/LoggerTrait.php
Critical conditions.
LoggerTrait::debug in lib/Psr/Log/LoggerTrait.php
Detailed debug information.
LoggerTrait::emergency in lib/Psr/Log/LoggerTrait.php
System is unusable.
LoggerTrait::error in lib/Psr/Log/LoggerTrait.php
Runtime errors that do not require immediate action but should typically be logged and monitored.

... See full list

File

lib/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());