Passing logger to handlers