Files
logwatcher/src/logwatcher/config.py
T

26 lines
545 B
Python

from zoneinfo import ZoneInfo
from enum import Enum
from pathlib import Path
### GENERAL DATA
# output paths
OUTPUT_PATH = Path("output")
RESULT_PATH = OUTPUT_PATH / "results"
LOGGING_PATH = OUTPUT_PATH / "logs"
# test paths
TEST_PATH = Path("tests")
FIXTURE_PATH = TEST_PATH / "fixtures"
# date and time
DATETIME_FORMAT = "%d/%m/%Y %H:%M:%S"
FRENCH_TIMEZONE = ZoneInfo("Europe/Paris")
# file type
class SourceType(Enum):
"""Designate which type of template to use while building reports."""
FILE = "fichier"
MAIL = "mail"