-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathexample.jlv.jsonc
117 lines (117 loc) · 3.31 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
// 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",
"$[\"@timestamp\"]"
],
"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
}
],
// Time layouts to reformat.
//
// If the time field has been parsed to any of the specified layouts,
// it will be formatted according to "time_format" configuration.
//
// See: https://pkg.go.dev/time#pkg-constants.
"time_layouts": [
"01/02 03:04:05PM '06 -0700",
"Mon Jan _2 15:04:05 2006",
"Mon Jan _2 15:04:05 MST 2006",
"Mon Jan 02 15:04:05 -0700 2006",
"02 Jan 06 15:04 MST",
"02 Jan 06 15:04 -0700",
"Monday, 02-Jan-06 15:04:05 MST",
"Mon, 02 Jan 2006 15:04:05 MST",
"Mon, 02 Jan 2006 15:04:05 -0700",
"2006-01-02T15:04:05Z07:00",
"2006-01-02T15:04:05.999999999Z07:00",
"Jan _2 15:04:05",
"Jan _2 15:04:05.000",
"Jan _2 15:04:05.000000",
"Jan _2 15:04:05.000000000",
"2006-01-02 15:04:05",
"2006-01-02"
],
// 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"
}