Documentation

IntrospectionProcessor
in package
implements ProcessorInterface

Injects line/file:class/function where the log message came from

Warning: This only works if the handler processes the logs directly. If you put the processor on a handler that is behind a FingersCrossedHandler for example, the processor will only be called once the trigger level is reached, and all the log records will have the same file/line/.. data from the call that triggered the FingersCrossedHandler.

Tags
author

Jordi Boggiano j.boggiano@seld.be

Table of Contents

Interfaces

ProcessorInterface
An optional interface to allow labelling Monolog processors.

Constants

SKIP_FUNCTIONS  = ['call_user_func', 'call_user_func_array']

Properties

$level  : Level
$skipClassesPartials  : array<string|int, string>
$skipStackFramesCount  : int

Methods

__construct()  : mixed
__invoke()  : LogRecord
isTraceClassOrSkippedFunction()  : bool

Constants

Properties

Methods

__construct()

public __construct([string|int|Level $level = Level::Debug ][, array<string|int, string> $skipClassesPartials = [] ][, int $skipStackFramesCount = 0 ]) : mixed
Parameters
$level : string|int|Level = Level::Debug

The minimum logging level at which this Processor will be triggered

$skipClassesPartials : array<string|int, string> = []
$skipStackFramesCount : int = 0
Tags
phpstan-param

value-ofLevel::VALUES|value-ofLevel::NAMES|Level|LogLevel::* $level

isTraceClassOrSkippedFunction()

private isTraceClassOrSkippedFunction(array<string|int, mixed> $trace, int $index) : bool
Parameters
$trace : array<string|int, mixed>
$index : int
Return values
bool

        
On this page

Search results