-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathphp.json
36 lines (36 loc) · 1.82 KB
/
php.json
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
{
"php_log": {
"title": "PHP log format",
"description": "Log format used by PHP (and PHP-FPM)",
"url": "http://www.php.net/",
"regex": {
"fpm": {
"pattern": "^\\[(?<date>\\d{2}-\\w{3}-\\d{4}) (?<timestamp>\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?)\\] (?<level>[A-Z]+): (\\[(?<type>\\w+\\ \\w+)\\])?(?:pid (?<pid>\\d{1,8}),)?(?<body>.*)$"
},
"error": {
"pattern": "^\\[(?<date>\\d{2}-\\w{3}-\\d{4}) (?<timestamp>\\d{2}:\\d{2}:\\d{2}) (?<timezone>\\w+/\\w+)\\] PHP\\s+(?<body>.*)$"
}
},
"value": {
"date": { "kind": "string", "identifier": true },
"timezone": { "kind": "string", "identifier": true },
"timestamp": { "kind": "string", "identifier": true },
"pid": { "kind": "integer", "identifier": true },
"type": { "kind": "string", "identifier": true }
},
"level-field": "level",
"level": {
"error": "ERROR",
"warning": "WARNING",
"info": "NOTICE",
"debug": "DEBUG"
},
"sample": [
{ "line" : "[29-Oct-2015 13:17:53] NOTICE: Terminating ..." },
{ "line" : "[29-Oct-2015 09:11:20] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root" },
{ "line" : "[03-Dec-2015 16:37:35.430903] DEBUG: pid 5135, fpm_socket_af_inet_listening_socket(), line 308: Found address for 127.0.0.1, socket opened on 127.0.0.1" },
{ "line" : "[03-Dec-2015 16:37:36.505733] DEBUG: pid 5135, fpm_pctl_perform_idle_server_maintenance(), line 379: [pool www] currently 0 active children, 3 spare children" },
{ "line" : "[05-Nov-2015 10:27:32 Europe/London] PHP Catchable fatal error: Argument 1 passed to Something" }
]
}
}