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
Table of Contents
Interfaces
- ProcessorInterface
- An optional interface to allow labelling Monolog processors.
Properties
- $level : mixed
- $skipClassesPartials : mixed
- $skipFunctions : mixed
- $skipStackFramesCount : mixed
Methods
- __construct() : mixed
- __invoke() : array<string|int, mixed>
- isTraceClassOrSkippedFunction() : mixed
Properties
$level
private
mixed
$level
$skipClassesPartials
private
mixed
$skipClassesPartials
$skipFunctions
private
mixed
$skipFunctions
= array('call_user_func', 'call_user_func_array')
$skipStackFramesCount
private
mixed
$skipStackFramesCount
Methods
__construct()
public
__construct([mixed $level = Logger::DEBUG ][, array<string|int, mixed> $skipClassesPartials = array() ][, mixed $skipStackFramesCount = 0 ]) : mixed
Parameters
- $level : mixed = Logger::DEBUG
- $skipClassesPartials : array<string|int, mixed> = array()
- $skipStackFramesCount : mixed = 0
__invoke()
public
__invoke(array<string|int, mixed> $record) : array<string|int, mixed>
Parameters
- $record : array<string|int, mixed>
Return values
array<string|int, mixed>isTraceClassOrSkippedFunction()
private
isTraceClassOrSkippedFunction(array<string|int, mixed> $trace, mixed $index) : mixed
Parameters
- $trace : array<string|int, mixed>
- $index : mixed