Skip to content

hyperion.log

hyperion.log

get_logger

get_logger(service, **context)

Get logger bound to a service with optional contextual variables.

Source code in hyperion/log.py
def get_logger(service: str, **context: Any) -> "loguru.Logger":
    """Get logger bound to a service with optional contextual variables."""
    return loguru.logger.bind(service=service, **context)