Support both fileobj and Logger in log_request()