Files
frigate/webcontrol/src/webcontrol/utils/logging.py
T
ashish be3bd11632 Rewrite with asyncio and FastAPI #5
Squashed commit of the following:

commit 6832d62dc8360bd20e92df5554dd36426119a50d
Author: Ashish D'Souza <[email protected]>
Date:   Sun Mar 24 03:17:38 2024 -0500

    Converted to asyncio
2024-03-24 03:40:36 -05:00

13 lines
247 B
Python

import logging
import logging.config
import yaml
def configure_logging() -> None:
with open("configs/logging.yaml", "r") as logging_yaml:
logging_config = yaml.safe_load(logging_yaml)
logging.config.dictConfig(logging_config)