TYPO3 CMS  TYPO3_7-6
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

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

Protected Member Functions

 shiftBacktraceLevel (array $backtrace)
 
 getDebugBacktrace ()
 

Protected Attributes

 $appendFullBackTrace = false
 
 $shiftBackTraceLevel = 0
 

Private Attributes

 $precedingBacktraceLine = ''
 
 $precedingBacktraceFile = ''
 

Detailed Description

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

Definition at line 22 of file IntrospectionProcessor.php.

Member Function Documentation

◆ getDebugBacktrace()

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

Get the debug backtrace

Returns
array

Definition at line 157 of file IntrospectionProcessor.php.

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

◆ processLogRecord()

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

◆ setAppendFullBackTrace()

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$appendFullBackTraceIf the full backtrace should be added
Returns

Definition at line 71 of file IntrospectionProcessor.php.

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

◆ setShiftBackTraceLevel()

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

Set the number of levels to be shift from the backtrace

Parameters
int$shiftBackTraceLevelNumbers of levels to shift
Returns

Definition at line 59 of file IntrospectionProcessor.php.

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

◆ shiftBacktraceLevel()

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

Shift the first item from the backtrace

Parameters
array$backtrace
Returns
array

Definition at line 139 of file IntrospectionProcessor.php.

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

Member Data Documentation

◆ $appendFullBackTrace

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

◆ $precedingBacktraceFile

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

◆ $precedingBacktraceLine

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

◆ $shiftBackTraceLevel

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