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
Question about def-loggers #21
Comments
Hi Julius,
Sure, this is the right place to ask :-)
Can you explain what you want to do here exactly? Do you want to change something in If you just want the logging macros ( (ns my-app (:require [taoensso.timbre :as timbre
:refer (trace debug info warn error fatal spy with-log-level)])) But maybe I misunderstand you? |
:), I just want the source codes refer to those macros under my namespace (:require [logging :as log]) like t_logging.clj instead of |
Okay, I think I understand. I think using If (defn require-timbre []
(require '[taoensso.timbre :as timbre :refer (trace debug info warn error fatal spy with-log-level)]) Then you can call Another idea: you can require Does that help? |
Okay, I have added |
It does help, Thanks a lot. Actually what I did is not about to save the time to press the long require statement, I want to abstract the logging interface, so that the code will not be changed a lot after switching the logging implementation. |
Hi,
I am not sure if it is appropriate to put question here, please close it if it not.
The question is what is the reason to make the def-loggers private, I want to use timbre as logging tool, but I would like to wrap it so it is flexible for me.
I make a poor workaround by copying def-loggers and so on into the logging.clj file in my personal project.
Thanks
Julius
The text was updated successfully, but these errors were encountered: