Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
network-assets-reptile
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
liyang
network-assets-reptile
Commits
4598a97d
Commit
4598a97d
authored
Jul 11, 2023
by
liyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:爬取数据入库
parent
3a1860d4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
192 deletions
+4
-192
app.log
app.log
+0
-189
error.log
error.log
+0
-0
Logger.py
utils/Logger.py
+4
-3
No files found.
app.log
deleted
100644 → 0
View file @
3a1860d4
This diff is collapsed.
Click to expand it.
error.log
deleted
100644 → 0
View file @
3a1860d4
utils/Logger.py
View file @
4598a97d
...
...
@@ -10,9 +10,10 @@ class MyLogger(Logger):
# log_name = '{}.log'.format(time.strftime("%Y_%m_%d_%H_%M_%S", time.localtime()))
# log_path_file = os.path.join(get_log_path(), log_name)
# 获取日志文件路径
all_log_path_file
=
os
.
path
.
join
(
os
.
path
.
abspath
(
get_log_path
()),
"network-assets-reptile"
,
"app.log"
)
error_log_path_file
=
os
.
path
.
join
(
os
.
path
.
abspath
(
get_log_path
()),
"network-assets-reptile"
,
"error.log"
)
print
(
f
'log file path:{all_log_path_file}'
)
all_log_path_file
=
os
.
path
.
join
(
os
.
path
.
abspath
(
get_log_path
()),
"network-assets-reptile"
,
"log"
,
"app.log"
)
error_log_path_file
=
os
.
path
.
join
(
os
.
path
.
abspath
(
get_log_path
()),
"network-assets-reptile"
,
"log"
,
"error.log"
)
# print(f'log file path:{all_log_path_file}')
# 设置日志的名字、日志的收集级别
super
()
.
__init__
(
"test_api"
,
logging
.
DEBUG
)
...
...
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