v1.4.2
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"