-
Notifications
You must be signed in to change notification settings - Fork 6
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
Logging #3
Comments
Are there best practices regarding logging for libraries? It would be good if the app using the library could inject the already used logger which is configured (Channels to log to, log level, ...). I'm not sure what best practices there are in Clojure regarding error handling. |
@lorenzleutgeb https://github.com/ptaoussanis/timbre perhaps? |
Here is my biggest issue with all the libraries I have looked at: The library has a "hard" dependency on the logging library, which needs to be configured. Now, an application usually has logging built in already and now there is a second way of logging which needs to be handled as well. I have no idea what the clojure way of handling this is. From PHP I know they have standardized logging and many libraries will make logging optional by injecting a logging object if you want logging. This logging object is injected into every library and needs to be configured only once. If you do not want logging for a library, you do not inject the object. |
Assumptions:
Implications:
Bonus Points: Generically use the logging library of the app/bot.
The text was updated successfully, but these errors were encountered: