ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilTraceProcessor.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
5
17
class
ilTraceProcessor
18
{
19
private
int
$level
= 0;
20
21
public
function
__construct
(
int
$a_level)
22
{
23
$this->level = $a_level;
24
}
25
29
public
function
__invoke
(array $record): array
30
{
31
if
($record[
'level'
] < $this->level) {
32
return
$record;
33
}
34
35
$trace = debug_backtrace();
36
37
// shift current method
38
array_shift($trace);
39
40
// shift internal monolog calls
41
array_shift($trace);
42
array_shift($trace);
43
array_shift($trace);
44
array_shift($trace);
45
46
if
(is_array($trace) && count($trace)) {
47
$trace_info =
48
($trace[0][
'class'
] ??
''
) .
'::'
.
49
($trace[0][
'function'
] ??
''
) .
':'
.
50
($trace[0][
'line'
] ??
''
);
51
$record[
'extra'
] = array_merge(
52
$record[
'extra'
],
53
array(
'trace'
=> $trace_info)
54
);
55
}
56
return
$record;
57
}
58
}
ilTraceProcessor
Logging factory.
Definition:
class.ilTraceProcessor.php:17
ilTraceProcessor\__invoke
__invoke(array $record)
Definition:
class.ilTraceProcessor.php:29
ilTraceProcessor\__construct
__construct(int $a_level)
Definition:
class.ilTraceProcessor.php:21
ilTraceProcessor\$level
int $level
Definition:
class.ilTraceProcessor.php:19
Services
Logging
classes
extensions
class.ilTraceProcessor.php
Generated on Sun Apr 13 2025 22:02:32 for ILIAS by
1.8.13 (using
Doxyfile
)