37 'call_user_func_array',
54 if ($record[
'level'] < $this->level) {
63 $trace = debug_backtrace((PHP_VERSION_ID < 50306) ? 2 : DEBUG_BACKTRACE_IGNORE_ARGS);
73 if (isset($trace[
$i][
'class'])) {
74 foreach ($this->skipClassesPartials as $part) {
75 if (strpos($trace[$i][
'class'], $part) !==
false) {
80 } elseif (in_array($trace[$i][
'function'], $this->skipFunctions)) {
91 $record[
'extra'] = array_merge(
94 'file' => isset($trace[
$i - 1][
'file']) ? $trace[
$i - 1][
'file'] : null,
95 'line' => isset($trace[
$i - 1][
'line']) ? $trace[
$i - 1][
'line'] : null,
96 'class' => isset($trace[
$i][
'class']) ? $trace[$i][
'class'] : null,
97 'function' => isset($trace[$i][
'function']) ? $trace[$i][
'function'] : null,
106 if (!isset($trace[
$index])) {
110 return isset($trace[$index][
'class']) || in_array($trace[$index][
'function'], $this->skipFunctions);
Injects line/file:class/function where the log message came from.
const DEBUG
Detailed debug information.
isTraceClassOrSkippedFunction(array $trace, $index)
static toMonologLevel($level)
Converts PSR-3 levels to Monolog ones if necessary.
__construct($level=Logger::DEBUG, array $skipClassesPartials=array(), $skipStackFramesCount=0)
An optional interface to allow labelling Monolog processors.