-
Notifications
You must be signed in to change notification settings - Fork 8
/
example.jlv.jsonc
91 lines (91 loc) · 2.46 KB
/
example.jlv.jsonc
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
{
// Comments are allowed.
"fields": [
{
"title": "Time", // Max length is 32.
// Kind affects rendering. There are:
// * time;
// * numerictime;
// * secondtime;
// * millitime;
// * microtime;
// * level;
// * message;
// * any.
"kind": "numerictime",
"ref": [
// The application will display the first matched value.
"$.timestamp",
"$.time",
"$.t",
"$.ts"
],
"width": 30,
// Year: "2006" "06"
// Month: "Jan" "January" "01" "1"
// Day of the week: "Mon" "Monday"
// Day of the month: "2" "_2" "02"
// Day of the year: "__2" "002"
// Hour: "15" "3" "03" (PM or AM)
// Minute: "4" "04"
// Second: "5" "05"
// AM/PM mark: "PM"
//
// More details: https://go.dev/src/time/format.go.
"time_format": "2006-01-02T15:04:05Z07:00"
},
{
"title": "Level",
"kind": "level",
"ref": [
"$.level",
"$.lvl",
"$.l"
],
"width": 10
},
{
"title": "Message",
"kind": "message",
"ref": [
"$.message",
"$.msg",
"$.error",
"$.err"
],
"width": 0 // The width will be calculated automatically.
},
{
"title": "Custom",
"kind": "any",
"ref": [
"$.custom"
],
"width": 0
}
],
// Mapping of log level.
// Possible values: none, trace, debug, info, warn, error, panic, fatal.
"customLevelMapping": {
// Replace "10" to "trace" in log level.
"10": "trace",
"20": "debug",
"30": "info",
"40": "warn",
"50": "error",
"60": "fatal"
},
// The maximum size of the file in bytes.
// The rest of the file will be ignored.
//
// It accepts the number of bytes:
//
// "maxFileSizeBytes": 1073741824
//
// Or a text value with a unit:
//
// "maxFileSizeBytes": "1000k"
// "maxFileSizeBytes": "1.5m"
// "maxFileSizeBytes": "1g"
"maxFileSizeBytes": "2g"
}