You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
857 B
33 lines
857 B
Global:
|
|
Source: "config(local)"
|
|
ChangeMe: "v1"
|
|
|
|
Log:
|
|
level: "info"
|
|
development: false
|
|
encoding: "console" # console or json
|
|
encoderConfig:
|
|
# https://godoc.org/go.uber.org/zap/zapcore#EncoderConfig
|
|
messageKey: "msg"
|
|
levelKey: "level"
|
|
timeKey: "ts"
|
|
nameKey: "DouTokLogger"
|
|
callerKey: "caller"
|
|
functionKey: ""
|
|
stacktraceKey: "stacktrace"
|
|
skipLineEnding: false
|
|
LineEnding:
|
|
levelEncoder: "capital" # capitalColor, capital, color, lowercase
|
|
timeEncoder: "iso8601" # rfc3339nano, rfc3339, iso8601, millis, nanos, default
|
|
durationEncoder: "seconds" # string, nanos, ms, seconds
|
|
callerEncoder: "full" # full, short
|
|
nameEncoder: "full" # full
|
|
consoleSeparator: " "
|
|
|
|
outputPaths:
|
|
- "stdout"
|
|
- "./tmp/DouTok.log"
|
|
#errorOutputPaths:
|
|
# - "stderr"
|
|
#initialFields:
|
|
# foo: "bar"
|