h3110Fr13nd commited on
Commit
3d82323
·
verified ·
1 Parent(s): 4044b09

Update src/kidney_classification/__init__.py

Browse files
Files changed (1) hide show
  1. src/kidney_classification/__init__.py +12 -12
src/kidney_classification/__init__.py CHANGED
@@ -1,18 +1,18 @@
1
  import os
2
  import sys
3
- # import logging
4
 
5
- # logging_str = "[%(asctime)s: %(levelname)s: %(module)s %(message)s]"
6
 
7
- # __name__ = "kidney_classification"
8
- # log_dir = "logs"
9
- # log_filepath = os.path.join(log_dir, "running_logs.log")
10
- # os.makedirs(log_dir, exist_ok=True)
11
 
12
- # logging.basicConfig(
13
- # level=logging.INFO,
14
- # format=logging_str,
15
- # handlers=[logging.FileHandler(log_filepath), logging.StreamHandler(sys.stdout)],
16
- # )
17
 
18
- # logger = logging.getLogger(__name__)
 
1
  import os
2
  import sys
3
+ import logging
4
 
5
+ logging_str = "[%(asctime)s: %(levelname)s: %(module)s %(message)s]"
6
 
7
+ __name__ = "kidney_classification"
8
+ log_dir = "logs"
9
+ log_filepath = os.path.join(log_dir, "running_logs.log")
10
+ os.makedirs(log_dir, exist_ok=True)
11
 
12
+ logging.basicConfig(
13
+ level=logging.INFO,
14
+ format=logging_str,
15
+ handlers=[logging.FileHandler(log_filepath), logging.StreamHandler(sys.stdout)],
16
+ )
17
 
18
+ logger = logging.getLogger(__name__)