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
13 lines
247 B
Python
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)
|
|
|