ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilLineFormatter.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2014 ILIAS open source, Extended GPL, see docs/LICENSE */
4
13{
17 public function format(array $record)
18 {
19 if (isset($record["extra"]["trace"]))
20 {
21 $record["message"] = $record["extra"]["trace"]." ".$record["message"];
22 $record["extra"] = array();
23 }
24
25 return parent::format($record);
26 }
27
28}
29
30?>
An exception for terminatinating execution or to throw for unit testing.
Formats incoming records into a one-line string.
Custom line formatter.
format(array $record)
{{{Formats a log record.mixed The formatted record}}}