Add support for injecting logger to core