Authored by 陈峰

Merge branch 'feature/logfile-name' into 'gray'

Feature/logfile name



See merge request !85
... ... @@ -84,15 +84,19 @@ module.exports = {
infoFile: {
name: 'info',
level: 'info',
filename: '/Data/logs/yohoblk-wap/info.log',
maxFiles: 7
filename: '/Data/logs/yohoblk-wap/info/info.log',
maxFiles: 1,
tailable: true,
maxsize: Math.pow(1024, 3),
},
errorFile: {
name: 'error',
level: 'error',
filename: '/Data/logs/yohoblk-wap/error.log',
filename: '/Data/logs/yohoblk-wap/error/error.log',
handleExceptions: true,
maxFiles: 7
maxFiles: 1,
tailable: true,
maxsize: Math.pow(1024, 3),
},
console: {
level: 'debug',
... ... @@ -161,8 +165,10 @@ if (isProduction) {
infoFile: {
name: 'info',
level: 'info',
filename: '/Data/logs/yohoblk-wap/info.log',
maxFiles: 7,
filename: '/Data/logs/yohoblk-wap/info/info.log',
maxFiles: 1,
tailable: true,
maxsize: Math.pow(1024, 3),
timestamp() {
return new Date().toString();
}
... ... @@ -170,9 +176,11 @@ if (isProduction) {
errorFile: {
name: 'error',
level: 'error',
filename: '/Data/logs/yohoblk-wap/error.log',
filename: '/Data/logs/yohoblk-wap/error/error.log',
maxFiles: 1,
tailable: true,
maxsize: Math.pow(1024, 3),
handleExceptions: true,
maxFiles: 7,
timestamp() {
return new Date().toString();
}
... ...
... ... @@ -67,7 +67,7 @@
"yoho-cookie": "1.2.0",
"yoho-jquery": "^2.2.4",
"yoho-md5": "^2.0.0",
"yoho-node-lib": "=0.6.8",
"yoho-node-lib": "=0.6.9",
"yoho-qs": "1.0.1",
"yoho-store": "^1.3.20"
},
... ...
... ... @@ -9791,7 +9791,7 @@ window-size@0.1.0:
version "0.1.0"
resolved "http://npm.yohops.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d"
winston-daily-rotate-file@^1.1.1, winston-daily-rotate-file@^1.3.0:
winston-daily-rotate-file@^1.3.0:
version "1.7.2"
resolved "http://npm.yohops.com/winston-daily-rotate-file/-/winston-daily-rotate-file-1.7.2.tgz#6502bfa297824fd982da5e5647c7538578d2f9a0"
dependencies:
... ... @@ -10020,9 +10020,9 @@ yoho-md5@^2.0.0:
version "2.0.0"
resolved "http://npm.yohops.com/yoho-md5/-/yoho-md5-2.0.0.tgz#e801a5cce8e08f5d7211e9a2e789ea7275eb9332"
yoho-node-lib@=0.6.8:
version "0.6.8"
resolved "http://npm.yohops.com/yoho-node-lib/-/yoho-node-lib-0.6.8.tgz#299266f52b9a8cf86f3a439529a5e00b9e9592f2"
yoho-node-lib@=0.6.9:
version "0.6.9"
resolved "http://npm.yohops.com/yoho-node-lib/-/yoho-node-lib-0.6.9.tgz#4dd5eae9e521d3d5986bde712c0714706c90f540"
dependencies:
dnscache "^1.0.1"
handlebars "^4.0.5"
... ... @@ -10037,7 +10037,6 @@ yoho-node-lib@=0.6.8:
uuid "^3.0.1"
walk "^2.3.9"
winston "^2.4.0"
winston-daily-rotate-file "^1.1.1"
xss-filters "^1.2.6"
yoho-qs@1.0.1:
... ...