Documentation

PluginLogger extends PrefixedLogger
in package
implements AttachableLogger

Tags
phpstan-import-type

LoggerAttachment from \AttachableLogger

Interfaces, Classes, Traits and Enums

AttachableLogger

Table of Contents

$attachments  : array<string|int, Closure>
$delegate  : Logger
$prefix  : string
__construct()  : mixed
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>
getPrefix()  : string
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
setPrefix()  : void
warning()  : void
Exceptional occurrences that are not errors.

Properties

$attachments

private array<string|int, Closure> $attachments = []
Tags
phpstan-var

LoggerAttachment[]

Methods

__construct()

public __construct(Logger $delegate, string $prefix) : mixed
Parameters
$delegate : Logger
$prefix : string
Return values
mixed

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(mixed $message) : void
Parameters
$message : mixed
Return values
void

critical()

Critical conditions

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

debug()

Detailed debug information.

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

emergency()

System is unusable

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

error()

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

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

getAttachments()

public getAttachments() : array<string|int, Closure>
Return values
array<string|int, Closure>

getPrefix()

public getPrefix() : string
Return values
string

info()

Interesting events.

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

log()

Logs with an arbitrary level.

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

logException()

Logs a Throwable object

public logException(Throwable $e[, mixed $trace = null ]) : void
Parameters
$e : Throwable
$trace : mixed = null
Return values
void

notice()

Normal but significant events.

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

setPrefix()

public setPrefix(string $prefix) : void
Parameters
$prefix : string
Return values
void

warning()

Exceptional occurrences that are not errors.

public warning(mixed $message) : void

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

Parameters
$message : mixed
Return values
void

Search results