clj-logging-config icon indicating copy to clipboard operation
clj-logging-config copied to clipboard

set-logger! macro evaluates args to early

Open cch1 opened this issue 13 years ago • 1 comments

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.

cch1 avatar May 27 '12 14:05 cch1

Confirmed. This is clearly a limitation which can be easily fixed.

Workaround: use set-loggers! directly.

darwin avatar Apr 18 '16 00:04 darwin