Skip to content

v1.4.2

Choose a tag to compare

@wangmingjob wangmingjob released this 25 Jun 02:55
· 7 commits to master since this release

update, CLS, SLS support lumberjack file config

logs: [
  {
    "alias": "student",
    "type": "sls",
    "lumberjackConfig":
        {
          "filename": "./log/student.log",
          "maxSize": 10,
          "maxBackups": 3,
          "maxAge": 28,
          "compress": true,
        },
    "accessKeyId": "xxxxxxx",
    "accessKeySecret": "xxxxxxx",
    "endpoint": "xxxxxxx",
    "allowLogLevel": "info",
    "closeStdout": false,
    "project": "ripple",
    "logstore": "xxxxxxx",
    "topic": "*package",
    "source": "source"
  },
  {
    "alias": "user",
    "type": "cls",
    "lumberjackConfig":
        {
          "filename": "./log/user.log",
          "maxSize": 10,
          "maxBackups": 3,
          "maxAge": 28,
          "compress": true,
        },
    "accessKeyId": "xxxxxxx",
    "accessKeySecret": "xxxxxxx",
    "endpoint": "xxxxxxx",
    "allowLogLevel": "info",
    "closeStdout": false,
    "project": "xxxxxxx",
    "logstore": "xxxxxxx",
    "topic": "topic",
    "source": "source"
  }
]
sls:
  lumberjackConfig:
    filename: "./log/sls.log"
    maxSize: 10
    maxBackups: 3
    maxAge: 28
    compress: true
  accessKeyId: "xxxxxxx"
  accessKeySecret: "xxxxxxx"
  endpoint: "xxxxxxxx"
  allowLogLevel: "info"  # debug,info,warn,error
  closeStdout: false
  project: "xxxxxxx"
  logstore: "xxxxxxx"
  topic: "topic"
  source: "source"
cls:
  lumberjackConfig:
    filename: "./log/cls.log"
    maxSize: 10
    maxBackups: 3
    maxAge: 28
    compress: true
  accessKeyId: "xxxxxxx"
  accessKeySecret: "xxxxxxx"
  endpoint: "xxxxxxxxxxxxxx"
  allowLogLevel: "info"  # debug,info,warn,error
  closeStdout: false
  topic: "xxxxxxxxxx"