use patch_logger for all monkey patches. patch_logger now also accept standard string as any logger

This allow to log when there is not function to be patched but a method
is added on a class, for example