org.yx.http.log.HttpLogHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sumk Show documentation
Show all versions of sumk Show documentation
A quick developing framewort for internet company
package org.yx.http.log;
import javax.servlet.http.HttpServletRequest;
import org.yx.http.handler.WebContext;
/**
* 这个在用户线程里执行,可以去到线程变量。处理最好用异步,要不然会阻塞请求,影响用户体验
*/
public interface HttpLogHandler {
void log(WebContext ctx);
void errorLog(int code, String errorMsg, WebContext ctx);
void errorLog(int code, String errorMsg, HttpServletRequest req);
}