Nextcloud PHP API (master)

BeforeMessageLoggedEvent extends Event
in package

Even for when a log item is being logged

Tags
since
28.0.0

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

$propagationStopped

private bool $propagationStopped = false
Tags
since
22.0.0

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
since
28.0.0

getApp()

Get the app context of the log item

public getApp() : string
Tags
since
28.0.0
Return values
string

getMessage()

Get the message of the log item

public getMessage() : array<string|int, mixed>
Tags
since
28.0.0
Return values
array<string|int, mixed>

isPropagationStopped()

{@inheritDoc}

public isPropagationStopped() : bool
Tags
since
22.0.0
see
StoppableEventInterface
Return values
bool

stopPropagation()

Stops the propagation of the event to further event listeners

public stopPropagation() : void
Tags
since
22.0.0

        
On this page

Search results