PHP PSR

AbstractLogger extends AbstractLogger
in package

AbstractYes

This is a simple PSR-3 Logger implementation that other PSR-3 Logger can inherit from.

Table of Contents

Methods

log()  : void
Logs with an arbitrary level.
interpolate()  : string
Interpolates context values into the message placeholders.

Methods

log()

Logs with an arbitrary level.

public log(mixed $level, string|Stringable $message[, array<string, mixed> $context = [] ]) : void
Parameters
$level : mixed
$message : string|Stringable
$context : array<string, mixed> = []
Tags
throws
InvalidArgumentException

interpolate()

Interpolates context values into the message placeholders.

protected interpolate(string $message[, array<string, mixed> $context = [] ]) : string
Parameters
$message : string
$context : array<string, mixed> = []
Return values
string

        
On this page

Search results