\Monolog\ProcessorIntrospectionProcessor

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.

Summary

Methods
Properties
Constants
__construct()
__invoke()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
isTraceClassOrSkippedFunction()
$level
$skipClassesPartials
$skipStackFramesCount
$skipFunctions
N/A

Properties

$level

$level : int

Type

int

$skipClassesPartials

$skipClassesPartials : string[]

Type

string[]

$skipStackFramesCount

$skipStackFramesCount : int

Type

int

$skipFunctions

$skipFunctions : string[]

Type

string[]

Methods

__construct()

__construct(string|int  $level = Logger::DEBUG, string[]  $skipClassesPartials = [], int  $skipStackFramesCount) : mixed

Parameters

string|int $level

The minimum logging level at which this Processor will be triggered

string[] $skipClassesPartials
int $skipStackFramesCount

Returns

mixed —

__invoke()

__invoke(array  $record) : array

Parameters

array $record

Returns

array —

The processed record

isTraceClassOrSkippedFunction()

isTraceClassOrSkippedFunction(array[]  $trace, int  $index) : bool

Parameters

array[] $trace
int $index

Returns

bool —