add the log request class and demo code