Transform logger into a one function object