ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilLineFormatter Class Reference

Custom line formatter. More...

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

Public Member Functions

 format (LogRecord $record)
 

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)

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: