19 declare(strict_types=1);
40 $this->level = $a_level;
46 public function __invoke(LogRecord $record): LogRecord
48 if ($record[
'level'] < $this->level) {
52 $trace = debug_backtrace();
63 if (is_array($trace) && count($trace)) {
65 ($trace[0][
'class'] ??
'') .
'::' .
66 ($trace[0][
'function'] ??
'') .
':' .
67 ($trace[0][
'line'] ??
'');
68 $record[
'extra'] = array_merge(
70 array(
'trace' => $trace_info)
__invoke(LogRecord $record)
__construct(int $a_level)