INNER CODE UNIT · Python

LoggingModes

permitio/fastapi_websocket_rpc · fastapi_websocket_rpc/logger.py:11

class LoggingModes(Enum):
    # don't produce logs
    NO_LOGS = 0
    # Log alongside uvicorn
    UVICORN = 1
    # Simple log calls (no config)
    SIMPLE = 2
    # log via the loguru module
    LOGURU = 3


LoggingMode = NewType('LoggingMode', LoggingModes)


class LoggingConfig:

    def __init__(self) -> None:
        self._mode = None

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…