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
Interfaces, Classes and Traits
- ProcessorInterface
- An optional interface to allow labelling Monolog processors.
Table of Contents
- $level : int
- $skipClassesPartials : array<string|int, string>
- $skipFunctions : array<string|int, string>
- $skipStackFramesCount : int
- __construct() : mixed
- __invoke() : array<string|int, mixed>
- isTraceClassOrSkippedFunction() : bool
Properties
$level
private
int
$level
$skipClassesPartials
private
array<string|int, string>
$skipClassesPartials
$skipFunctions
private
array<string|int, string>
$skipFunctions
= ['call_user_func', 'call_user_func_array']
$skipStackFramesCount
private
int
$skipStackFramesCount
Methods
__construct()
public
__construct([string|int $level = Logger::DEBUG ][, array<string|int, string> $skipClassesPartials = [] ], int $skipStackFramesCount) : mixed
Parameters
- $level : string|int = Logger::DEBUG
-
The minimum logging level at which this Processor will be triggered
- $skipClassesPartials : array<string|int, string> = []
- $skipStackFramesCount : int
Tags
Return values
mixed —__invoke()
public
__invoke(array<string|int, mixed> $record) : array<string|int, mixed>
Parameters
- $record : array<string|int, mixed>
Return values
array<string|int, mixed> —The processed record
isTraceClassOrSkippedFunction()
private
isTraceClassOrSkippedFunction(array<string|int, array<string|int, mixed>> $trace, int $index) : bool
Parameters
- $trace : array<string|int, array<string|int, mixed>>
- $index : int