Implement --log-level option in logger middleware.