Elgg  Version 6.3
Public Member Functions | Protected Attributes | List of all members
Elgg\Logger\BacktraceProcessor Class Reference

Inject backtrace stack into the record. More...

Public Member Functions

 __construct ($level=Level::Warning, protected int $backtrace_level=-1)
 Constructor. More...
 
 __invoke (LogRecord $record)
 Process record. More...
 

Protected Attributes

Level $level
 

Detailed Description

Inject backtrace stack into the record.

Definition at line 12 of file BacktraceProcessor.php.

Constructor & Destructor Documentation

◆ __construct()

Elgg\Logger\BacktraceProcessor::__construct (   $level = Level::Warning,
protected int  $backtrace_level = -1 
)

Constructor.

Parameters
int$levelLogging level
int$backtrace_levelBacktrace level (-1 for all)

Definition at line 22 of file BacktraceProcessor.php.

Member Function Documentation

◆ __invoke()

Elgg\Logger\BacktraceProcessor::__invoke ( LogRecord  $record)

Process record.

Parameters
LogRecord$recordRecord
Returns
LogRecord

Definition at line 33 of file BacktraceProcessor.php.

Member Data Documentation

◆ $level

Level Elgg\Logger\BacktraceProcessor::$level
protected

Definition at line 14 of file BacktraceProcessor.php.


The documentation for this class was generated from the following file: