Loading...
Loading...
A request-scoped, handler-facing logger. Declare a logger parameter on a #[handler] / #[api] function and the framework provides it automatically - it does **not** need to be added to ApplicationState, and it works whether or not the app has custom state: ignore #[ossido::handler] async fn get_pokemon(req: Request, fetch: Client, logger: ossido::Logger) -> Response { logger.info("fetching a pokemon"); // ... } Its methods emit BE log lines (in the active pretty / json format) tagged with the request path, so a handler's logs are tied to the request.