Skip to main content

runtime_logging

start

def start(logger: Optional[BaseLogger] = None,
logger_type: Literal["sqlite", "file"] = "sqlite",
config: Optional[Dict[str, Any]] = None) -> str

Start logging for the runtime.

Arguments:

  • logger BaseLogger - A logger instance
  • logger_type str - The type of logger to use (default: sqlite)
  • config dict - Configuration for the logger

Returns:

session_id (str(uuid.uuid4)): a unique id for the logging session