Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
coco
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
ops
coco
Commits
709f85b1
Commit
709f85b1
authored
Feb 14, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修改日志存储
parent
56d23da6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
Dockerfile
Dockerfile
+1
-1
logger.py
coco/logger.py
+3
-4
No files found.
Dockerfile
View file @
709f85b1
...
...
@@ -6,7 +6,7 @@ WORKDIR /opt/coco
RUN
yum
-y
install
epel-release
RUN
cd
requirements
&&
yum
-y
install
$(
cat
rpm_requirements.txt
)
RUN
cd
requirements
&&
pip
install
$(
egrep
"jumpserver|jms"
requirements.txt |
tr
'\n'
' '
)
&&
pip
install
-r
requirements.txt
-i
https://mirrors.ustc.edu.cn/pypi/web/simple
RUN
cd
requirements
&&
pip
install
-r
requirements.txt
-i
https://mirrors.ustc.edu.cn/pypi/web/simple
||
pip
install
-r
requirements.txt
ENV
LANG=zh_CN.UTF-8
ENV
LC_ALL=zh_CN.UTF-8
...
...
coco/logger.py
View file @
709f85b1
...
...
@@ -45,12 +45,11 @@ def create_logger():
},
'file'
:
{
'level'
:
'DEBUG'
,
'class'
:
'logging.handlers.
Timed
RotatingFileHandler'
,
'class'
:
'logging.handlers.RotatingFileHandler'
,
'formatter'
:
'main'
,
'filename'
:
log_path
,
'when'
:
"D"
,
'interval'
:
1
,
"backupCount"
:
7
'maxBytes'
:
1024
*
1024
*
100
,
'backupCount'
:
7
,
},
},
loggers
=
{
...
...
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