Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohoblk-wap
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
陈峰
7 years ago
Commit
84762781b8e5ccae1b7cd8256d65a6c64f22e8f8
2 parents
4c97e6f9
1b706fb3
Merge branch 'feature/logfile-name' into 'gray'
Feature/logfile name See merge request
!85
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
14 deletions
config/common.js
package.json
yarn.lock
config/common.js
View file @
8476278
...
...
@@ -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
();
}
...
...
package.json
View file @
8476278
...
...
@@ -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"
},
...
...
yarn.lock
View file @
8476278
...
...
@@ -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:
...
...
Please
register
or
login
to post a comment