-
Notifications
You must be signed in to change notification settings - Fork 0
/
testdata.go
44 lines (37 loc) · 1.04 KB
/
testdata.go
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
package logger
// configTestData will return a map of test data containing valid and invalid logger configs.
func configTestData() map[string]string {
testData := make(map[string]string)
testData["empty"] = ``
testData["valid_devel"] = `
builtin_config: Development
builtin_encoder_config: Development`
testData["valid_prod"] = `
builtin_config: Production
builtin_encoder_config: Production`
testData["invalid_builtin"] = `
builtin_config: Invalid
builtin_encoder_config: Invalid`
testData["valid_config"] = `
builtin_config: Development
builtin_encoder_config: Development
general_config:
development: true
disableCaller: true
disableStacktrace: true
encoding: json
outputPaths: ["stdout", "stderr"]
errorOutputPaths: ["stdout", "stderr"]
encoder_config:
messageKey: message key
levelKey: level key
timeKey: time key
nameKey: name key
callerKey: caller key
functionKey: function key
stacktraceKey: stacktrace key
skipLineEnding: true
lineEnding: line ending
consoleSeparator: console separator`
return testData
}