python-bioformats
python-bioformats copied to clipboard
Suppressing debug and info logging?
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.
Same here.
Running into the same issue
This function helped me to suppress the messages.
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
Also maybe worth mentioning:
DebugTools.setRootLevel("OFF"); // Bio-Formats
(Thanks to @tischi for this workaround.)