Add logging to decorator, even if logger not defined.