github.com/dubbogo/gost@v1.14.0/log/logger/file_log.yml (about)

     1  lumberjackConfig:
     2    filename: "logs.log"
     3    maxSize: 1
     4    maxAge: 3
     5    maxBackups: 5
     6    localTime: true
     7    compress: false
     8  
     9  zapConfig:
    10    level: "debug"
    11    development: false
    12    disableCaller: false
    13    disableStacktrace: false
    14    sampling:
    15    encoding: "console"
    16  
    17    # encoder
    18    encoderConfig:
    19      messageKey: "message"
    20      levelKey: "level"
    21      timeKey: "time"
    22      nameKey: "logger"
    23      callerKey: "caller"
    24      stacktraceKey: "stacktrace"
    25      lineEnding: ""
    26      levelEncoder: "capitalColor"
    27      timeEncoder: "iso8601"
    28      durationEncoder: "seconds"
    29      callerEncoder: "short"
    30      nameEncoder: ""
    31  
    32    outputPaths:
    33      - "stdout"
    34    errorOutputPaths:
    35      - "stderr"
    36    initialFields: