CellProfiler / python-bioformats

Read and write life sciences file formats
Other
125 stars 45 forks source link

Suppressing debug and info logging? #137

Open markemus opened 3 years ago

markemus commented 3 years ago

I'm getting a huge number of DEBUG and INFO level messages from bioformats when trying to read an image. Is there a way to suppress these? I wasn't able to find anything about it in the documentation, existing issues, or in the javabridge documentation/issues. The only discussion I found was this issue but bioformats.init_logger() doesn't seem to exist anymore.

sommerc commented 3 years ago

Same here.

RonaldY98 commented 3 years ago

Running into the same issue

hayatoikoma commented 3 years ago

This function helped me to suppress the messages.

mehdiborji commented 3 years ago

Thank you @hayatoikoma this solution seems to be working at least for now, credits to @pskeshu ! More information here: https://forum.image.sc/t/python-bioformats-and-javabridge-debug-messages/12578

ctrueden commented 2 years ago

Also maybe worth mentioning:

DebugTools.setRootLevel("OFF"); // Bio-Formats

(Thanks to @tischi for this workaround.)