Skip to content

Commit 68a4502

Browse files
author
howie6879
committed
update: v0.8.5
1 parent dc0efcd commit 68a4502

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

ruia/item.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Created by howie.hu at 2022-08-21.
2+
Created by howie.hu at 2018.
33
Description: Target field process class
44
Changelog: all notable changes to this file will be documented
55
"""

ruia/utils/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1-
#!/usr/bin/env python
1+
"""
2+
Created by howie.hu at 2018.
3+
Description: Init logger
4+
Changelog: all notable changes to this file will be documented
5+
"""
6+
27

38
from .log import get_logger

ruia/utils/log.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
1-
#!/usr/bin/env python
1+
"""
2+
Created by howie.hu at 2022-08-21.
3+
Description: Get logger
4+
Changelog: all notable changes to this file will be documented
5+
"""
26

37
import logging
48

59

610
def get_logger(name="Ruia"):
11+
"""
12+
Get logger
13+
Args:
14+
name (str, optional): logger name. Defaults to "Ruia".
15+
16+
Returns:
17+
_type_: Logger
18+
"""
719
logging_format = f"[%(asctime)s] %(levelname)-5s %(name)-{len(name)}s "
820
# logging_format += "%(module)-7s::l%(lineno)d: "
921
# logging_format += "%(module)-7s: "

0 commit comments

Comments
 (0)