Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
config_repository
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
config_repository
Commits
20100902
Commit
20100902
authored
May 23, 2018
by
tywldx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
961c48a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
statistics.js
nodejs/statistics.js
+38
-0
No files found.
nodejs/statistics.js
0 → 100644
View file @
20100902
const
path
=
require
(
'
path
'
)
const
logDir
=
path
.
resolve
(
process
.
cwd
(),
'
./logs
'
)
module
.
exports
=
{
port
:
80
,
logProperty
:
"
collection
"
,
redis
:
{
api
:
'
redis://redis:6379/1
'
},
LOCK_EXPIRE
:
5
,
// url锁定5s
SNAP_EXPIRE
:
3
*
24
*
60
*
60
,
// 缓存3天
log4js
:
{
appenders
:
[
{
type
:
'
console
'
},
//控制台输出
{
type
:
'
dateFile
'
,
// 项目日志
filename
:
`
${
logDir
}
/statistics.log`
,
pattern
:
'
.yyyy-MM-dd
'
,
category
:
'
app
'
,
layout
:
{
type
:
'
basic
'
}
},
{
type
:
'
dateFile
'
,
// 日志上传
filename
:
`
${
logDir
}
/statistics-up.log`
,
pattern
:
'
.yyyy-MM-dd
'
,
category
:
'
upload
'
,
layout
:
{
type
:
'
pattern
'
,
pattern
:
"
%m
"
}
}
]
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment