src.uagents.utils
get_logger ↗ (opens in a new tab)
def get_logger(logger_name: str, level: Union[int, str] = logging.INFO)
Get a logger with the given name using uvicorn's default formatter.
log ↗ (opens in a new tab)
def log(logger: Optional[logging.Logger], level: int, message: str)
Log a message with the given logger and level.
Arguments:
logger
Optional[logging.Logger] - The logger to use.level
int - The logging level.message
str - The message to log.