-
Notifications
You must be signed in to change notification settings - Fork 0
/
logging.config
99 lines (95 loc) · 3.08 KB
/
logging.config
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
{
"logger": {
"Demo.PUG": {
"logLevel": "DEBUG",
"filters": [
"ERROR_FORMAT",
"FULL_TEXT_FORMAT",
{
"name": "NAMED_FILE_WRITER",
"fileName": "${session.temp-dir}/pug-uk.log",
"appendTo": true
}
]
},
"one": {
"logLevel": "ERROR",
"filters": [
"ERROR_FORMAT",
"FULL_TEXT_FORMAT",
{
"name": "NAMED_FILE_WRITER",
"fileName": "${session.temp-dir}/one.log",
"appendTo": true
}
]
},
"send.to.elastic.search": {
"logLevel": "DEBUG",
"filters": [
"TOKEN_FORMAT",
"MDC_FORMAT",
"ERROR_FORMAT",
"REPLACE_TOKENS_FORMAT",
{
"name": "ELASTIC_SEARCH_WRITER",
"serviceURI": "http://localhost:9200/",
"indexName": "<your-index-name>"
}
]
},
"one.with.tokens": {
"logLevel": "TRACE",
"filters": [
"ERROR_FORMAT",
"TOKEN_FORMAT",
"MDC_FORMAT",
{
"name": "ANON_FORMAT",
"hashAlgo": "SHA-512",
"tokensToAnon": "mdc.myName"
},
"REPLACE_TOKENS_FORMAT",
"FULL_TEXT_FORMAT",
{
"name": "NAMED_FILE_WRITER",
"fileName": "${session.temp-dir}/tokens.log",
"appendTo": false
}
]
},
"one.with.reversed.words": {
"logLevel": "DEBUG",
"filters": [
"MDC_FORMAT",
{
"name": "TRANSLATION_FILTER",
"toLang": "af",
"serviceURI": "https://api.cognitive.microsofttranslator.com/translate?api-version=3.0",
"apiKey": "11bee17b7b9a42b0be976094f6a74ca8",
"region": "eastus"
},
"NO-REVERSED_WORDS_FILTER",
"REPLACE_TOKENS_FORMAT",
"PER_REQUEST_WRITER",
{
"name": "NAMED_FILE_WRITER",
"fileName": "${session.temp-dir}/backwards.log",
"appendTo": true
}
]
}
},
"filter": {
"REVERSED_WORDS_FILTER": "Example.Filters.ReverseWordsFormat",
"TRANSLATION_FILTER": {
"type": "Example.Filters.TranslatedMessageFormat",
"builder": "Example.Builders.TranslatedMessageFormatBuilder"
},
"ELASTIC_SEARCH_WRITER": {
"type": "Example.Filters.ElasticSearchWriter",
"builder": "Example.Builders.ElasticSearchWriterBuilder"
},
"PER_REQUEST_WRITER": "Example.Filters.PerRequestWriter"
}
}