bhauman / figwheel-main

Figwheel Main provides tooling for developing ClojureScript applications
https://figwheel.org
Eclipse Public License 1.0
640 stars 93 forks source link

Logging default is adverse to people with existing java util Logging config #273

Open SevereOverfl0w opened 3 years ago

SevereOverfl0w commented 3 years ago

When I run figwheel via the scripting API, I get a lot of logging messages to my console despite having a config that filters out INFO and below.

I traced this down to how figwheel sets up the *logger* by default:

This makes it quite awkward to utilize an existing java.util.Logging config (I have mine forwarded to SLF4J). I've ended up with this code to undo the figwheel logging tweaks:

(figwheel.main.logging/remove-handlers figwheel.main.logging/*logger*)
(.setUseParentHandlers figwheel.main.logging/*logger* true)