0
I'm using the logging module in python and i would like to create a function or class method which logs only if some condition is false, similar to assert but with logging a msg instead of raising an exception.
In order to still be able to use the condition in if, while, any, all etc., i would li...