Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
integrated-scheduling-v3
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
虢奥
integrated-scheduling-v3
Commits
b6bf7ded
Commit
b6bf7ded
authored
Apr 27, 2022
by
张晓彤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置文件修改
parent
f9fbad85
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
config.json
config.json
+3
-3
settings.py
settings.py
+5
-5
调度系统部署说明3.1.docx
调度系统部署说明3.1.docx
+0
-0
No files found.
config.json
View file @
b6bf7ded
{
"para"
:
{
"log_path"
:
"
E:
\\
Pycharm Projects
\\
Waytous
\\
"
,
"empty_speed"
:
25
,
"heavy_speed"
:
22
,
"log_path"
:
"
/usr/local/fleet-log/dispatch
"
,
"empty_speed"
:
17
,
"heavy_speed"
:
17
,
"dump_target_mass"
:
5000
,
"excavator_target_mass"
:
5000
},
...
...
settings.py
View file @
b6bf7ded
...
...
@@ -47,6 +47,9 @@ dump_target_mass = para_config["dump_target_mass"]
# 挖机目标装载量
excavator_target_mass
=
para_config
[
"excavator_target_mass"
]
logger
=
logging
.
getLogger
(
"zxt"
)
logger
.
setLevel
(
logging
.
INFO
)
def
set_log
():
...
...
@@ -62,13 +65,10 @@ def set_log():
# logging初始化工作
logging
.
basicConfig
()
logger
=
logging
.
getLogger
(
"zxt"
)
logger
.
setLevel
(
logging
.
INFO
)
# timefilehandler = logging.handlers.TimedRotatingFileHandler(log_path + "/dispatch.log", when='M', interval=1, backupCount=60)
#
filehandler = logging.handlers.RotatingFileHandler(log_path + "/dispatch.log", maxBytes=3*1024*1024, backupCount=10)
filehandler
=
logging
.
handlers
.
RotatingFileHandler
(
"./Logs/dispatch.log"
,
maxBytes
=
3
*
1024
*
1024
,
backupCount
=
10
)
filehandler
=
logging
.
handlers
.
RotatingFileHandler
(
log_path
+
"/dispatch.log"
,
maxBytes
=
3
*
1024
*
1024
,
backupCount
=
10
)
#
filehandler = logging.handlers.RotatingFileHandler("./Logs/dispatch.log", maxBytes=3 * 1024 * 1024, backupCount=10)
# 设置后缀名称,跟strftime的格式一样
filehandler
.
suffix
=
"
%
Y-
%
m-
%
d_
%
H-
%
M.log"
...
...
调度系统部署说明3.1.docx
View file @
b6bf7ded
No preview for this file type
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