Spaces:
Running
Running
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 |
-
|
19 |
-
if not os.path.exists(log_dir):
|
20 |
-
os.makedirs(log_dir)
|
21 |
|
22 |
# Set up logging
|
23 |
-
logging.basicConfig(filename=
|
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 |
"""
|