Added possibility to inject already initialized logger into middleware