ServletContext接口的方法 log(String message)的实际用途是什么?
答案 0 :(得分:3)
来自:http://docs.oracle.com/javaee/6/api/javax/servlet/ServletContext.html#log%28java.lang.String%29
日志
void log(java.lang.String msg)
Writes the specified message to a servlet log file, usually an event log. The name and type of the servlet log file is specific to the servlet container. Parameters: msg - a String specifying the message to be written to the log file
在我看来,它允许您将消息添加到服务器日志。