clj-logging-config
clj-logging-config copied to clipboard
set-logger! macro evaluates args to early
If I programmatically call set-logger! with a run-time determined argument, it's not possible to configure the root logger since the (keyword? logger) function has already been evaluated.
The (keyword? logger) function needs to be evaluated at runtime, not macro expansion time.
Confirmed. This is clearly a limitation which can be easily fixed.
Workaround: use set-loggers! directly.