processing / processing-sound

Audio library for Processing built with JSyn
https://processing.org/reference/libraries/sound/
GNU Lesser General Public License v2.1
149 stars 50 forks source link

Suppress JSyn's java.util.logging INFO messages during library initialization #12

Closed kevinstadler closed 5 years ago

kevinstadler commented 6 years ago

Some users are confused/unsettled by the logging messages produced by JSyn during initialization, which show up as red text in the Processing interface (see e.g. here). The user experience could be improved by (temporarily) setting the relevant JSyn classes' logging level to WARNING (or higher) until initialization is complete. This is the relevant Java logging class/method to use: https://docs.oracle.com/javase/7/docs/api/java/util/logging/Logger.html#setLevel(java.util.logging.Level)

Affected JSyn classes whose logging levels need to be adjusted are (at least) com.jsyn.devices.javasound.JavaSoundAudioDevice, com.jsyn.engine.SynthesisEngine and com.jsyn.engine.SynthesisEngine$EngineThread