The options are:

   - (when (condition? ...) (debug ...))
   - Altering of your logging library's configuration file (some logging 
   libs support reloads at runtime, iirc)
   - Altering your logging library's configuration directly in code 
   (implementation-specific)
   - Provide your own clojure.tools.logging.impl.Logger/LoggerFactoryprotocol 
implementations which embed the conditional logic you want.  The 
   upside to that is you can access rebindable vars that were set further back 
   in the call stack.  Look at the impl.clj code; it's pretty 
   straightforward.  Once you have that, you just need to alter-var-root or 
   bindings the *logger-factory* var.


Which one makes sense really depends on the context of your desire to 
disable individual log items at runtime.  Then again, perhaps this is an XY 
problem.




-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to