Added logger as an argument.

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