Log to program directory.

This commit is contained in:
Rames The Generic committed 2025-01-31 15:14:37 -05:00
1 parent e81d5ae660
commit 92f9439cc2
1 file changed
+2 -1
+2 -1
View File
@@ -40,7 +40,8 @@ def log_system_info(logger):
def setup_logging():
# Determine the user's Documents directory
documents_dir = os.path.join(os.path.expanduser("~"), "Documents")
#documents_dir = os.path.join(os.path.expanduser("~"), "Documents")
documents_dir = "./Logs"
log_dir = os.path.join(documents_dir, "ProjectBabble")
os.makedirs(log_dir, exist_ok=True)
log_file = os.path.join(log_dir, "latest.log")