m7mdal7aj commited on
Commit
2649a0f
·
verified ·
1 Parent(s): 902eec0

Update my_model/utilities/gen_utilities.py

Browse files
my_model/utilities/gen_utilities.py CHANGED
@@ -15,12 +15,10 @@ import functools
15
  ###### this is used for logging any interaction with the app. ########
16
 
17
  ###### Logging Decorator ########
18
- log_dir = 'my_model/utilities'
19
- if not os.path.exists(log_dir):
20
- os.makedirs(log_dir)
21
 
22
  # Set up logging
23
- logging.basicConfig(filename=os.path.join(log_dir, 'app.log'), level=logging.DEBUG, format='%(asctime)s - %(message)s')
24
 
25
  def log_event(event: str) -> None:
26
  """
 
15
  ###### this is used for logging any interaction with the app. ########
16
 
17
  ###### Logging Decorator ########
18
+ log_file = 'my_model/utilities/app.log'
 
 
19
 
20
  # Set up logging
21
+ logging.basicConfig(filename=log_file), level=logging.DEBUG, format='%(asctime)s - %(message)s')
22
 
23
  def log_event(event: str) -> None:
24
  """