BeforeMessageLoggedEvent
extends Event
in package
Even for when a log item is being logged
Tags
Table of Contents
Properties
- $app : string
- $level : int
- $message : mixed
- $propagationStopped : bool
Methods
- __construct() : mixed
- Compatibility constructor
- getApp() : string
- Get the app context of the log item
- getLevel() : int
- Get the level of the log item
- getMessage() : array<string|int, mixed>
- Get the message of the log item
- isPropagationStopped() : bool
- {@inheritDoc}
- stopPropagation() : void
- Stops the propagation of the event to further event listeners
Properties
$app
private
string
$app
$level
private
int
$level
$message
private
mixed
$message
$propagationStopped
private
bool
$propagationStopped
= false
Tags
Methods
__construct()
Compatibility constructor
public
__construct(string $app, int $level, array<string|int, mixed> $message) : mixed
Parameters
- $app : string
- $level : int
- $message : array<string|int, mixed>
Tags
getApp()
Get the app context of the log item
public
getApp() : string
Tags
Return values
stringgetLevel()
Get the level of the log item
public
getLevel() : int
Tags
Return values
intgetMessage()
Get the message of the log item
public
getMessage() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>isPropagationStopped()
{@inheritDoc}
public
isPropagationStopped() : bool
Tags
Return values
boolstopPropagation()
Stops the propagation of the event to further event listeners
public
stopPropagation() : void