ramanjitsingh1368's picture
Add initial project structure with configuration and logging setup
76ea68f
raw
history blame contribute delete
192 Bytes
import os
from loguru import logger
LOG_FILE = os.getenv("LOG_FILE")
if LOG_FILE:
LOG_RETENTION = os.getenv("LOG_RETENTION", "90 days")
logger.add(LOG_FILE, retention=LOG_RETENTION)