ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilLineFormatter Class Reference

Custom line formatter. More...

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

Public Member Functions

 format (array $record)
 {Formats a log record.
Parameters
array$recordA record to format
Returns
mixed The formatted record
} More...
 
- Public Member Functions inherited from Monolog\Formatter\LineFormatter
 __construct ($format=null, $dateFormat=null, $allowInlineLineBreaks=false, $ignoreEmptyContextAndExtra=false)
 
 includeStacktraces ($include=true)
 
 allowInlineLineBreaks ($allow=true)
 
 ignoreEmptyContextAndExtra ($ignore=true)
 
 format (array $record)
 {Formats a log record.
Parameters
array$recordA record to format
Returns
mixed The formatted record
} More...
 
 formatBatch (array $records)
 Formats a set of log records. More...
 
 stringify ($value)
 
- Public Member Functions inherited from Monolog\Formatter\NormalizerFormatter
 __construct ($dateFormat=null)
 
 format (array $record)
 {Formats a log record.
Parameters
array$recordA record to format
Returns
mixed The formatted record
} More...
 
 formatBatch (array $records)
 {Formats a set of log records.
Parameters
array$recordsA set of records to format
Returns
mixed The formatted set of records
} More...
 
 detectAndCleanUtf8 (&$data)
 Detect invalid UTF-8 string characters and convert to valid UTF-8. More...
 

Additional Inherited Members

- Data Fields inherited from Monolog\Formatter\LineFormatter
const SIMPLE_FORMAT = "[%datetime%] %channel%.%level_name%: %message% %context% %extra%\n"
 
- Data Fields inherited from Monolog\Formatter\NormalizerFormatter
const SIMPLE_DATE = "Y-m-d H:i:s"
 
- Protected Member Functions inherited from Monolog\Formatter\LineFormatter
 normalizeException ($e)
 
 convertToString ($data)
 
 replaceNewlines ($str)
 
- Protected Member Functions inherited from Monolog\Formatter\NormalizerFormatter
 normalize ($data)
 
 normalizeException ($e)
 
 toJson ($data, $ignoreErrors=false)
 Return the JSON representation of a value. More...
 
- Protected Attributes inherited from Monolog\Formatter\LineFormatter
 $format
 
 $allowInlineLineBreaks
 
 $ignoreEmptyContextAndExtra
 
 $includeStacktraces
 
- Protected Attributes inherited from Monolog\Formatter\NormalizerFormatter
 $dateFormat
 

Detailed Description

Custom line formatter.

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

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

Member Function Documentation

◆ format()

ilLineFormatter::format ( array  $record)

{Formats a log record.

Parameters
array$recordA record to format
Returns
mixed The formatted record
}

Implements Monolog\Formatter\FormatterInterface.

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

References array, and format.

18  {
19  if (isset($record["extra"]["trace"])) {
20  $record["message"] = $record["extra"]["trace"] . " " . $record["message"];
21  $record["extra"] = array();
22  }
23 
24  return parent::format($record);
25  }
Create styles array
The data for the language used.
Write to Excel2007 format

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