class ErrorReporterLogger implements LoggerInterface (View source)

A Logger that use the built-in PHP trigger_error function

Traits

LoggerTrait
Singleton pattern trait

Methods

static $this
getInstance()

Get the class singleton instance

__construct()

No description

log($level, $message, array $context = array())

Invoke PHP built-in function \trigger_error

Details

static $this getInstance()

Get the class singleton instance

Return Value

$this Class singleton instance. If the singleton was not created yet, the instance will be created by calling the class constructor with the arguments given to the getInstance() method

__construct()

log($level, $message, array $context = array())

Invoke PHP built-in function \trigger_error

{@inheritdoc}

Parameters

$level
$message
array $context

See also

\Psr\Log\LoggerInterface::log()