ILIAS  release_8 Revision v8.24
class.ilLineFormatter.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
5/* Copyright (c) 1998-2014 ILIAS open source, Extended GPL, see docs/LICENSE */
6
7use Monolog\Formatter\LineFormatter as LineFormatter;
8
15class ilLineFormatter extends LineFormatter
16{
20 public function format(array $record): string
21 {
22 if (isset($record["extra"]["trace"])) {
23 $record["message"] = $record["extra"]["trace"] . " " . $record["message"];
24 $record["extra"] = array();
25 }
26 return parent::format($record);
27 }
28}
Custom line formatter.
format(array $record)
@inheritDoc