Bind logger methods to the logger

When specifying a custom logger, the logger methods are not bound to the logger.
In particular it prevents using [logule](https://github.com/clux/logule) as a custom logger.
This pull request fixes it.