Documentation

BufferedLogger extends Logger

Table of Contents

alert()  : void
Action must be taken immediately
buffer()  : void
Buffers log messages while the closure is executed, and then flushes the buffer.
critical()  : void
Critical conditions
debug()  : void
Detailed debug information.
emergency()  : void
System is unusable
error()  : void
Runtime errors that do not require immediate action but should typically be logged and monitored.
info()  : void
Interesting events.
log()  : void
Logs with an arbitrary level.
logException()  : void
Logs a Throwable object
notice()  : void
Normal but significant events.
warning()  : void
Exceptional occurrences that are not errors.

Methods

alert()

Action must be taken immediately

public alert(string $message) : void
Parameters
$message : string
Return values
void

buffer()

Buffers log messages while the closure is executed, and then flushes the buffer.

public buffer(Closure $buffered) : void

This is typically used to log blocks of messages on concurrent loggers.

Parameters
$buffered : Closure
Tags
phpstan-param

\Closure() : void $buffered

Return values
void

critical()

Critical conditions

public critical(string $message) : void
Parameters
$message : string
Return values
void

debug()

Detailed debug information.

public debug(string $message) : void
Parameters
$message : string
Return values
void

emergency()

System is unusable

public emergency(string $message) : void
Parameters
$message : string
Return values
void

error()

Runtime errors that do not require immediate action but should typically be logged and monitored.

public error(string $message) : void
Parameters
$message : string
Return values
void

info()

Interesting events.

public info(string $message) : void
Parameters
$message : string
Return values
void

log()

Logs with an arbitrary level.

public log(mixed $level, string $message) : void
Parameters
$level : mixed
$message : string
Return values
void

logException()

Logs a Throwable object

public logException(Throwable $e[, array<string|int, mixed>|null $trace = null ]) : void
Parameters
$e : Throwable
$trace : array<string|int, mixed>|null = null
Tags
phpstan-param

list<array<string, mixed>>|null $trace

Return values
void

notice()

Normal but significant events.

public notice(string $message) : void
Parameters
$message : string
Return values
void

warning()

Exceptional occurrences that are not errors.

public warning(string $message) : void

Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.

Parameters
$message : string
Return values
void

Search results