Skip to content

Instantly share code, notes, and snippets.

@cemerick
Created October 11, 2013 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cemerick/6935482 to your computer and use it in GitHub Desktop.
Save cemerick/6935482 to your computer and use it in GitHub Desktop.
(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