-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Abstract Logging #1735
Comments
My ultimate goal here is really to move Yesod over to rio's logging system, and rio more generally. That said, even without a breaking change, I think it's possible to extend Yesod to be more accepting of other logging functions. The |
I've written a library for hooking Yesod up to Katip scribes - but it's forced to hijack |
Can you clarify what you mean by hijacking |
I mean that logging to Katip scribes required manually calling out to (e.g.) It was also problematic because I found that I had to remember to manually respect (The code for the instance is here.) |
There's definitely some legacy cruft in the If I'm reading the code in question, and the comments above, it seems this is less about "Katip isn't supported" and more "Katip isn't the default supported type and we'd like that configurable." Which I understand, but I'm hesitant to do because of the potential for more complex error messages and overall maintenance burden. I am in favor of moving away from the current logging approach to something built around Does that make sense? |
Right now,
yesod
hardcodes logging toLoggerSet
, which only operates on filepaths. This makes it difficult to integrate with any other means of logging.Specifically, I want
yesod
to log viakatip
.This would be a breaking change, since
Yesod
'smakeLogger :: app -> IO LoggerSet
is a wired in part of the application.The text was updated successfully, but these errors were encountered: