Update logging configuration and file paths in constants and init modules

This commit is contained in:
William Valentin
2025-07-24 11:55:10 -07:00
parent 32c04efd2d
commit 3abe262804
3 changed files with 27 additions and 31 deletions

View File

@@ -3,12 +3,16 @@ from logger import init_logger
from constants import LOG_PATH, LOG_CLEAR, LOG_LEVEL
if not os.path.exists(LOG_PATH):
os.mkdir(LOG_PATH)
try:
os.mkdir(LOG_PATH)
print(LOG_PATH)
except Exception as e:
print(e)
log_files = (
f"{LOG_PATH}/app.log",
f"{LOG_PATH}/app.warning.log",
f"{LOG_PATH}/app.error.log",
f"{LOG_PATH}/thechart.log",
f"{LOG_PATH}/thechart.warning.log",
f"{LOG_PATH}/thechart.error.log",
)
testing_mode = LOG_LEVEL == "DEBUG"