ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilLineFormatter Class Reference

Custom line formatter. More...

+ Inheritance diagram for ilLineFormatter:
+ Collaboration diagram for ilLineFormatter:

Public Member Functions

 format (LogRecord $record)
 @inheritDoc More...
 

Detailed Description

Custom line formatter.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e

Definition at line 30 of file class.ilLineFormatter.php.

Member Function Documentation

◆ format()

ilLineFormatter::format ( LogRecord  $record)

@inheritDoc

Definition at line 35 of file class.ilLineFormatter.php.

35 : string
36 {
37 if (isset($record["extra"]["trace"])) {
38 $trace = $record["extra"]["trace"];
39 unset($record["extra"]["trace"]);
40 $record = $record->with(
41 message: $trace . " " . $record["message"],
42 extra: $record["extra"]
43 );
44 }
45
46 $record = $record->with(context: []);
47
48 return parent::format($record);
49 }

The documentation for this class was generated from the following file: