Created
October 11, 2013 14:24
-
-
Save cemerick/6935482 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns dh.immutant.logging | |
(:import (java.util.logging LogManager Level))) | |
;; can't bring myself to bother with the XML logging config in jboss | |
(def logger-levels | |
{"org.openid4java" :warn}) | |
(let [lm (LogManager/getLogManager)] | |
(doseq [[logger-name level] logger-levels] | |
(.setLevel (.getLogger lm logger-name) | |
(Level/parse (.toUpperCase (name level)))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment