Logging bridge between Yesod and Katip.
A library of ytl-style site transformers for adding Katip logging functionality to Yesod monads, as well as capturing and redirectly Yesod-style logging to Katip scribes.
This package supports two workflows:
Taking an existing Yesod website and making its logs also go to Katip, without changing any of the handlers, by wrapping the foundation site in a site transformer.
Using the Katip logging API inside Yesod handlers and widgets through constraints on the foundation site. In this workflow, the site transformers are an easy way to give an existing foundation site Katip functionality and sensible default behaviours.
yesod-katip - Use Katip in your Yesod site
yesod-katip
is a utility library for easily adding katip
operability to your yesod
site. It provides class instances for logging to Katip scribes directly from a Yesod HandlerFor
; as well as utility wrappers for augmenting a Yesod site with useful Katip behaviours, like pulling in HTTP context automatically, and making the Yesod logger output to Katip.
For more information, have a look at the module documentation.