File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 1
1
"""
2
- Created by howie.hu at 2022-08-21 .
2
+ Created by howie.hu at 2018 .
3
3
Description: Target field process class
4
4
Changelog: all notable changes to this file will be documented
5
5
"""
Original file line number Diff line number Diff line change 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
+
2
7
3
8
from .log import get_logger
Original file line number Diff line number Diff line change 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
+ """
2
6
3
7
import logging
4
8
5
9
6
10
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
+ """
7
19
logging_format = f"[%(asctime)s] %(levelname)-5s %(name)-{ len (name )} s "
8
20
# logging_format += "%(module)-7s::l%(lineno)d: "
9
21
# logging_format += "%(module)-7s: "
You can’t perform that action at this time.
0 commit comments