‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Log\Processor\IntrospectionProcessor Class Reference
Inheritance diagram for TYPO3\CMS\Core\Log\Processor\IntrospectionProcessor:
TYPO3\CMS\Core\Log\Processor\AbstractProcessor TYPO3\CMS\Core\Log\Processor\ProcessorInterface

Public Member Functions

IntrospectionProcessor setShiftBackTraceLevel ($shiftBackTraceLevel)
 
IntrospectionProcessor setAppendFullBackTrace ($appendFullBackTrace)
 
LogRecord processLogRecord (LogRecord $logRecord)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Log\Processor\AbstractProcessor
 __construct (array $options=[])
 

Protected Member Functions

array shiftBacktraceLevel (array $backtrace)
 
array getDebugBacktrace ()
 

Protected Attributes

bool $appendFullBackTrace = false
 
int $shiftBackTraceLevel = 0
 

Private Attributes

string $precedingBacktraceLine = ''
 
string $precedingBacktraceFile = ''
 

Detailed Description

Introspection processor to automatically add where the log record came from.

Definition at line 23 of file IntrospectionProcessor.php.

Member Function Documentation

◆ getDebugBacktrace()

array TYPO3\CMS\Core\Log\Processor\IntrospectionProcessor::getDebugBacktrace ( )
protected

Get the debug backtrace

Returns
‪array

Definition at line 153 of file IntrospectionProcessor.php.

Referenced by TYPO3\CMS\Core\Log\Processor\IntrospectionProcessor\processLogRecord().

◆ processLogRecord()

LogRecord TYPO3\CMS\Core\Log\Processor\IntrospectionProcessor::processLogRecord ( LogRecord  $logRecord)

◆ setAppendFullBackTrace()

IntrospectionProcessor TYPO3\CMS\Core\Log\Processor\IntrospectionProcessor::setAppendFullBackTrace (   $appendFullBackTrace)

Set if the full backtrace should be added to the log or just the last item

Parameters
bool$appendFullBackTrace‪If the full backtrace should be added
Returns
IntrospectionProcessor

Definition at line 68 of file IntrospectionProcessor.php.

References TYPO3\CMS\Core\Log\Processor\IntrospectionProcessor\$appendFullBackTrace.

◆ setShiftBackTraceLevel()

IntrospectionProcessor TYPO3\CMS\Core\Log\Processor\IntrospectionProcessor::setShiftBackTraceLevel (   $shiftBackTraceLevel)

Set the number of levels to be shift from the backtrace

Parameters
int$shiftBackTraceLevel‪Numbers of levels to shift
Returns
IntrospectionProcessor

Definition at line 56 of file IntrospectionProcessor.php.

References TYPO3\CMS\Core\Log\Processor\IntrospectionProcessor\$shiftBackTraceLevel.

◆ shiftBacktraceLevel()

array TYPO3\CMS\Core\Log\Processor\IntrospectionProcessor::shiftBacktraceLevel ( array  $backtrace)
protected

Shift the first item from the backtrace

Returns
‪array

Definition at line 135 of file IntrospectionProcessor.php.

Referenced by TYPO3\CMS\Core\Log\Processor\IntrospectionProcessor\processLogRecord().

Member Data Documentation

◆ $appendFullBackTrace

bool TYPO3\CMS\Core\Log\Processor\IntrospectionProcessor::$appendFullBackTrace = false
protected

Add the full backtrace to the log entry or just the last entry of the backtrace

Definition at line 30 of file IntrospectionProcessor.php.

Referenced by TYPO3\CMS\Core\Log\Processor\IntrospectionProcessor\setAppendFullBackTrace().

◆ $precedingBacktraceFile

string TYPO3\CMS\Core\Log\Processor\IntrospectionProcessor::$precedingBacktraceFile = ''
private

Temporary storage of the preceding backtrace file

Definition at line 48 of file IntrospectionProcessor.php.

Referenced by TYPO3\CMS\Core\Log\Processor\IntrospectionProcessor\processLogRecord().

◆ $precedingBacktraceLine

string TYPO3\CMS\Core\Log\Processor\IntrospectionProcessor::$precedingBacktraceLine = ''
private

Temporary storage of the preceding backtrace line number

Definition at line 42 of file IntrospectionProcessor.php.

Referenced by TYPO3\CMS\Core\Log\Processor\IntrospectionProcessor\processLogRecord().

◆ $shiftBackTraceLevel

int TYPO3\CMS\Core\Log\Processor\IntrospectionProcessor::$shiftBackTraceLevel = 0
protected