Dependency injection to inject log module