Skip to content

Commit

Permalink
feat: update config for using new handler
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-sabonchi committed Feb 8, 2024
1 parent 6c64677 commit 670118a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions web/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import logging
import os
import sys
from collections import OrderedDict

# We need to include the root directory in sys.path to ensure that we can
# find everything we need when running in the standalone runtime.
Expand Down Expand Up @@ -285,11 +286,17 @@
# INFO 20
# DEBUG 10
# NOTSET 0
CONSOLE_LOG_LEVEL = logging.WARNING
CONSOLE_LOG_LEVEL = logging.CRITICAL
FILE_LOG_LEVEL = logging.WARNING

# Log format.
CONSOLE_LOG_FORMAT = '%(asctime)s: %(levelname)s\t%(name)s:\t%(message)s'
# https://github.com/MyColorfulDays/jsonformatter?tab=readme-ov-file
CONSOLE_LOG_FORMAT = OrderedDict([
("Asctime", "asctime"),
("Levelname", "levelname"),
("Message", "message"),
])

FILE_LOG_FORMAT = '%(asctime)s: %(levelname)s\t%(name)s:\t%(message)s'

# Log file name. This goes in the data directory, except on non-Windows
Expand Down

0 comments on commit 670118a

Please sign in to comment.