ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ ilDoc Overview
class.ilLineFormatter.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
Monolog\Formatter\LineFormatter
as
LineFormatter
;
22
use
Monolog\LogRecord
;
23
30
class
ilLineFormatter
extends
LineFormatter
31
{
35
public
function
format
(LogRecord $record): 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
}
50
}
LogRecord
LineFormatter
ilLineFormatter
Custom line formatter.
Definition:
class.ilLineFormatter.php:30
ilLineFormatter\format
format(LogRecord $record)
Definition:
class.ilLineFormatter.php:35
components
ILIAS
Logging
classes
extensions
class.ilLineFormatter.php
Generated on Wed Sep 3 2025 23:03:21 for ILIAS by
1.8.13 (using
Doxyfile
)