Documentation

AttachableLogger extends Logger

Tags
phpstan-type

LoggerAttachment \Closure(mixed $level, string $message) : void

Table of Contents

addAttachment()  : void
alert()  : void
Action must be taken immediately
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.
getAttachments()  : array<string|int, Closure>
info()  : void
Interesting events.
log()  : void
Logs with an arbitrary level.
logException()  : void
Logs a Throwable object
notice()  : void
Normal but significant events.
removeAttachment()  : void
removeAttachments()  : void
warning()  : void
Exceptional occurrences that are not errors.

Methods

addAttachment()

public addAttachment(Closure $attachment) : void
Parameters
$attachment : Closure
Tags
phpstan-param

LoggerAttachment $attachment

Return values
void

alert()

Action must be taken immediately

public alert(string $message) : void
Parameters
$message : string
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

getAttachments()

public getAttachments() : array<string|int, Closure>
Tags
phpstan-return

LoggerAttachment[]

Return values
array<string|int, Closure>

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

removeAttachment()

public removeAttachment(Closure $attachment) : void
Parameters
$attachment : Closure
Tags
phpstan-param

LoggerAttachment $attachment

Return values
void

removeAttachments()

public removeAttachments() : void
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