Added custom logger as a parameter.

Part of https://github.com/nearform/nscale-kernel/pull/8