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
ebeb0795
Commit
ebeb0795
authored
May 02, 2018
by
wentao.suo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIX
parent
6123f4f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
activity-op.js
nodejs/activity-op.js
+10
-9
No files found.
nodejs/activity-op.js
View file @
ebeb0795
const
path
=
require
(
'
path
'
);
const
logDir
=
path
.
resolve
(
process
.
cwd
(),
'
../logs
'
)
module
.
exports
=
{
port
:
'
80
'
,
// mongodb
...
...
@@ -14,16 +16,15 @@ module.exports = {
// log4js
log4js
:
{
appenders
:
[
{
type
:
'
console
'
},
//控制台输出
{
type
:
'
dateFile
'
,
//文件输出
filename
:
'
/home/quant_group/logs/activity-op.log
'
,
pattern
:
'
.yyyy-MM-dd
'
,
layout
:
{
type
:
'
basic
'
}
appenders
:
{
app
:
{
type
:
'
dateFile
'
,
filename
:
logDir
+
'
/activity-op.log
'
,
daysToKeep
:
3
,
compress
:
true
},
error
:
{
type
:
'
dateFile
'
,
filename
:
logDir
+
'
/activity-op.error.log
'
,
daysToKeep
:
3
,
compress
:
true
},
just_errors
:
{
type
:
'
logLevelFilter
'
,
appender
:
'
error
'
,
level
:
'
error
'
}
}
,
categories
:
{
default
:
{
appenders
:
[
'
app
'
,
'
just_errors
'
],
level
:
'
info
'
}
}
]
},
},
// API
APP_API
:
'
http://sappbackend.domain.com
'
,
...
...
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