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);
An exception for terminatinating execution or to throw for unit testing.
static toMonologLevel($level)
Converts PSR-3 levels to Monolog ones if necessary.
const DEBUG
Detailed debug information.
Injects line/file:class/function where the log message came from.
__construct($level=Logger::DEBUG, array $skipClassesPartials=array(), $skipStackFramesCount=0)
isTraceClassOrSkippedFunction(array $trace, $index)
An optional interface to allow labelling Monolog processors.