I want to pass extra logging param in Uvicorn server at FastAPI application.Now im using
extra = {"source": "any source"}logger = logging.getLogger(__name__)logger = logging.LoggerAdapter(logger, extra)
But I need to configure logger with yaml fileI got file like this
version: 1disable_existing_loggers: Falsefilters: masking: (): core.logging_.filters.maskingfilter.MaskingFilter mask: "*****"handlers: socket: (): core.logging_.handlers.jsonsockethandler.JSONSocketHandler filters: - masking host: '0.0.0.0' port: 9021root: handlers: - socket level: DEBUG
So my question is how can to put extra param with source to yaml config?