summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/mattermost/logr/v2/config/sample-config.json
blob: 540bafbb8d487800317a1c714bc73a9d0427f2fe (plain) (blame)
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
{
    "sample-console": {
        "type": "console",
        "options": {
            "out": "stdout"
        },
        "format": "plain",
        "format_options": {
            "delim": " | "
        },
        "levels": [
            {"id": 5, "name": "debug"},
            {"id": 4, "name": "info"},
            {"id": 3, "name": "warn"},
            {"id": 2, "name": "error", "stacktrace": true},
            {"id": 1, "name": "fatal", "stacktrace": true},
            {"id": 0, "name": "panic", "stacktrace": true}
        ],
        "maxqueuesize": 1000
    },
    "sample-file": {
        "type": "file",
        "options": {
            "filename": "test.log",
            "max_size": 1000000,
            "max_age": 1,
            "max_backups": 10,
            "compress": true
        },
        "format": "json",
        "format_options": {
        },
        "levels": [
            {"id": 5, "name": "debug"},
            {"id": 4, "name": "info"},
            {"id": 3, "name": "warn"},
            {"id": 2, "name": "error", "stacktrace": true},
            {"id": 1, "name": "fatal", "stacktrace": true},
            {"id": 0, "name": "panic", "stacktrace": true}
        ],
        "maxqueuesize": 1000
    },
    "sample-tcp": {
        "type": "tcp",
        "options": {
            "host": "localhost",
            "port": 18066,
            "tls": false,
            "cert": "",
            "insecure": false
        },
        "format": "gelf",
        "format_options": {
            "hostname": "server01"
        },
        "levels": [
            {"id": 5, "name": "debug"},
            {"id": 4, "name": "info"},
            {"id": 3, "name": "warn"},
            {"id": 2, "name": "error", "stacktrace": true},
            {"id": 1, "name": "fatal", "stacktrace": true},
            {"id": 0, "name": "panic", "stacktrace": true}
        ],
        "maxqueuesize": 1000
    },
    "sample-syslog": {
        "type": "syslog",
        "options": {
            "host": "localhost",
            "port": 18066,
            "tls": false,
            "cert": "",
            "insecure": false,
            "tag": "testapp"
        },
        "format": "plain",
        "format_options": {
            "delim": "  "
        },
        "levels": [
            {"id": 5, "name": "debug"},
            {"id": 4, "name": "info"},
            {"id": 3, "name": "warn"},
            {"id": 2, "name": "error", "stacktrace": true},
            {"id": 1, "name": "fatal", "stacktrace": true},
            {"id": 0, "name": "panic", "stacktrace": true}
        ],
        "maxqueuesize": 1000
    }
}