bhauman / lein-figwheel

Figwheel builds your ClojureScript code and hot loads it into the browser as you are coding!
Eclipse Public License 1.0
2.88k stars 210 forks source link

Console log level #621

Open uwo opened 6 years ago

uwo commented 6 years ago

Is there a way to turn down the printing to the browser console? When we change a namespace that many others depend upon it spams the console, which makes println debugging challenging. Turning off ‘info’ level wouldn't work, because it would hide our own debug println's.

If there's not an existing work around, would you be open to a patch submission for a configuration setting that elides js/console.log statments like "Loading! ..."?

bhauman commented 6 years ago

I'm putting some though into this. We already have a logging abstraction, we can add our own log level which upgrades and downgrades what happens.

The hard part here is testing that the behavior makes sense on all the different platforms.

We could just set a log level and only use console.log to report things.

anghene commented 4 years ago

Hello, I see this has happened after two years, so kudos on a well maintained and written project, but I now find myself trying to turn off logging (when my backend uses slf4j it renders figwheel unusable because way too much information is being spewed out). Tried turning :log-level :off and/or :warn (as instructed here but it keeps showing DEBUG and INFO. I did that in both dev.cljs.edn and in figwheel-main.edn and it is ignored - however the :log-file "figwheel-main.log" conf option works. Please advise on how to turn off logging (at least console logging) so that I can use figwheel properly.