-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathLogboard_config_default.yml
110 lines (94 loc) · 4.07 KB
/
Logboard_config_default.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
###########################################################################################
# Copy and paste this file in your app/config directory and import it into config_dev.yml #
###########################################################################################
logboard:
#-----------------------------------------------------------------------------------------------------------------------
All logs:
enabled: true
title: All logs
src: file
data: %kernel.logs_dir%/dev.log
engine: file_storage
decompiler: pattern_matcher
menu:
date:
enabled: true
title: Date
split:
callback: \So\LogboardBundle\Callback\DateFormatter::standardFormat
parameter: /^\[([0-9]{4}-[[0-9]{2}-[[0-9]{2}).*/
priority:
title: Priority
split:
parameter: /^\[[0-9]{4}-[[0-9]{2}-[[0-9]{2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}\]\s[a-z]*\.([a-zA-Z]*).*/
Events:
title: Events
split:
parameter: /.*(kernel.[a-zA-Z]*).*/
Doctrine:
title: Doctrine
split:
parameter: /.*(Doctrine[^\s\:]*).*/i
#-----------------------------------------------------------------------------------------------------------------------
PHP:
enabled: true
title: PHP logs
src: file
#Replace this with the path to your php error log and adapt the regex
data: "@LogboardBundle/../Resources/config/default.log.path/php/php_error_log"
engine: file_storage
decompiler: pattern_matcher
menu:
date:
title: Date
split:
parameter: /\[([0-9]{2}-[a-zA-Z]{3}-[0-9]{4})\s[0-9]{2}:[0-9]{2}:[0-9]{2}\s[A-Z]*].*/
priority:
title: Priority
split:
parameter: /.*(PHP\s[^\s:]*).*/
files:
title: Files
split:
parameter: |.*\\+(\w*.php).*|
Exceptions:
title: Exceptions
split:
parameter: |.*Uncaught exception+.*\\+(\w*.php).*|
#-----------------------------------------------------------------------------------------------------------------------
Apache:
enabled: true
title: Apache logs
src: file
#Replace this with the path to your Apache error log and adapt the regex
data: "@LogboardBundle/../Resources/config/default.log.path/Apache/error.log"
engine: file_storage
decompiler: pattern_matcher
menu:
date:
title: Date
split:
parameter: /^\[([a-zA-Z0-9\s:.]*)\](.*)/
callback: \So\LogboardBundle\Callback\DateFormatter::apacheFormat
priority:
title: Priority
split:
parameter: /^\[+[^\]]*.\s\[([^\]]*)(.*)/
callback: \So\LogboardBundle\Callback\StringFormatter::uppercase
tid :
title: Process PID
split:
parameter: /^\[+[^\]]*.\s\[[^\]]*\]\s\[(pid\s\d*)(.*)/
callback: \So\LogboardBundle\Callback\StringFormatter::uppercase
pid :
title: Process TID
split:
parameter: /^\[+[^\]]*.\s\[[^\]]*\]\s\[.*(tid\s\d*)(.*)/
callback: \So\LogboardBundle\Callback\StringFormatter::uppercase
SSL_REQUEST :
title: SSL Request
#Replace this with the path to your Apache ssl_request log and adapt the regex
data: "@LogboardBundle/../Resources/config/default.log.path/Apache/ssl_request.log"
split:
parameter: /^\[([0-9\/A-Za-z]*)(.*)/
#-----------------------------------------------------------------------------------------------------------------------