python-bioformats icon indicating copy to clipboard operation
python-bioformats copied to clipboard

Suppressing debug and info logging?

Open markemus opened this issue 5 years ago • 5 comments

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.

markemus avatar Oct 01 '20 23:10 markemus

Same here.

sommerc avatar Oct 22 '20 14:10 sommerc

Running into the same issue

RonaldY98 avatar Nov 18 '20 17:11 RonaldY98

This function helped me to suppress the messages.

hayatoikoma avatar Mar 18 '21 21:03 hayatoikoma

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

mehdiborji avatar Apr 27 '21 15:04 mehdiborji

Also maybe worth mentioning:

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

(Thanks to @tischi for this workaround.)

ctrueden avatar Mar 14 '22 18:03 ctrueden