Chnage logging output

This commit is contained in:
Niklas Müller 2024-01-05 17:40:16 +01:00
parent f19c7861b0
commit 6cb54c31ba
1 changed files with 1 additions and 1 deletions

2
app.py
View File

@ -14,7 +14,7 @@ logging.basicConfig(
# level=logging.ERROR,
# level=logging.INFO,
level=logging.DEBUG,
format="Start: " + str(dt.datetime.now()).replace(" ", "_") + " | %(asctime)s [%(levelname)s] %(message)s",
format=str(dt.datetime.now()).replace(" ", "_") + " | %(asctime)s [%(levelname)s] %(message)s",
handlers=[
logging.FileHandler("/var/log/" + str(dt.datetime.today().strftime('%Y-%m-%d')) + "_-_cron.log"),
logging.StreamHandler(sys.stdout)