在进行Django / Python Web开发以完全检查这样的HTTP请求时,我发现非常有用:
logger = logging.getLogger(__name__)
def index(request):
logger.info(request)
Java Servlet有类似之处吗?
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// debugInfo should print something similar to what you get in DJANGO
debugInfo(request);
}