19 lines
452 B
Python
19 lines
452 B
Python
from backend.infra.config.backend import settings
|
|
|
|
|
|
class Settings():
|
|
LOG_LEVEL: str = "DEBUG"
|
|
LOG_PATH_BASE: str = (
|
|
settings.LOG_BASE_PATH.removesuffix("/")
|
|
)
|
|
LOG_PATH: str = LOG_PATH_BASE + '/' + settings.BACKEND_LOG_FILE_NAME + '.log'
|
|
LOG_RETENTION: str = "14 days"
|
|
LOG_ROTATION: str = "00:00" # mid night
|
|
|
|
class Config:
|
|
env_file = ".log.env"
|
|
env_file_encoding = "utf-8"
|
|
|
|
|
|
settings = Settings()
|