TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
IntrospectionProcessor Class Reference
Inheritance diagram for IntrospectionProcessor:
AbstractProcessor ProcessorInterface

Public Member Functions

 setShiftBackTraceLevel ($shiftBackTraceLevel)
 
 setAppendFullBackTrace ($appendFullBackTrace)
 
 processLogRecord (LogRecord $logRecord)
 
- Public Member Functions inherited from AbstractProcessor
 __construct (array $options=array())
 
- Public Member Functions inherited from 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 ( )
protected

Get the debug backtrace

Returns
array

Definition at line 158 of file IntrospectionProcessor.php.

Referenced by IntrospectionProcessor\processLogRecord().

processLogRecord ( LogRecord  $logRecord)

Add debug backtrace information to logRecord It adds: filepath, line number, class and function name

Parameters
LogRecord$logRecordThe log record to process
Returns
LogRecord The processed log record with additional data
See Also
debug_backtrace()

Definition at line 86 of file IntrospectionProcessor.php.

References IntrospectionProcessor\$shiftBackTraceLevel, LogRecord\addData(), IntrospectionProcessor\getDebugBacktrace(), and IntrospectionProcessor\shiftBacktraceLevel().

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 IntrospectionProcessor\$appendFullBackTrace.

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 IntrospectionProcessor\$shiftBackTraceLevel.

shiftBacktraceLevel ( array  $backtrace)
protected

Shift the first item from the backtrace

Parameters
array$backtrace
Returns
array

Definition at line 140 of file IntrospectionProcessor.php.

Referenced by IntrospectionProcessor\processLogRecord().

Member Data Documentation

$appendFullBackTrace = false
protected
$precedingBacktraceFile = ''
private

Definition at line 51 of file IntrospectionProcessor.php.

$precedingBacktraceLine = ''
private

Definition at line 44 of file IntrospectionProcessor.php.

$shiftBackTraceLevel = 0
protected