Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
InterfaceAutoTest_cym
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cym
InterfaceAutoTest_cym
Commits
1c573a9a
Commit
1c573a9a
authored
Nov 08, 2023
by
cym
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口自动化框架V1.0.2
parent
7d19e42d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
InterfaceAutoTest/common/log.py
+1
-1
No files found.
InterfaceAutoTest/common/log.py
View file @
1c573a9a
...
...
@@ -15,7 +15,7 @@ import logging
def
write_log
():
logger
=
logging
.
getLogger
(
name
=
"ccc"
)
logger
.
level
=
logging
.
NOTSET
log_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
getcwd
(
)),
"report/log/ccc.log"
)
log_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
()
)),
"report/log/ccc.log"
)
handler
=
logging
.
FileHandler
(
log_path
,
mode
=
"a"
,
encoding
=
"utf-8"
)
format
=
logging
.
Formatter
(
'
%(asctime)
s -
%(filename)
s[line:
%(lineno)
d] -
%(levelname)
s:
%(message)
s -
%(name)
s'
)
handler
.
setFormatter
(
format
)
...
...
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