X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fdash%2Fapp%2Fpal%2Futils%2Fconstants.py;h=1f31185f71bf958151f09bb2983bdc00bc8d1af7;hp=b95a8f5456e2437251a1ddffb2536092122a3127;hb=1efb9c180524bdb0bdccc612e182364821810fa5;hpb=ed0473f9ac01522470fb8a2260720214b72ca47f diff --git a/resources/tools/dash/app/pal/utils/constants.py b/resources/tools/dash/app/pal/utils/constants.py index b95a8f5456..1f31185f71 100644 --- a/resources/tools/dash/app/pal/utils/constants.py +++ b/resources/tools/dash/app/pal/utils/constants.py @@ -17,7 +17,7 @@ does not need to be hard coded here, but can be read from environment variables. """ - +import logging import dash_bootstrap_components as dbc from dash import html @@ -30,6 +30,11 @@ class Constants: ############################################################################ # General, application wide constants. + # Logging settings. + LOG_LEVEL = logging.INFO + LOG_FORMAT = "%(asctime)s: %(levelname)s: %(message)s" + LOG_DATE_FORMAT = "%Y/%m/%d %H:%M:%S" + # The application title. TITLE = "FD.io CSIT" @@ -256,6 +261,9 @@ class Constants: # Time period for regressions and progressions. NEWS_TIME_PERIOD = TIME_PERIOD # [days] + # Time period for summary tables. + NEWS_SUMMARY_PERIOD = 7 # [days] + ############################################################################ # Report.