配置步骤在应用程序中使用log4j把log4j-*.*jar放入CLASSPATH变量中新建一个配置文件log4j.properties,放于bin文件下新建一个配置文件log4j.properties,如:log4j.rootLogger=WARN, stdout, Rlog4j.appender.stdout=org.apache.log4j.ConsoleAppenderlog4j.appender.stdout.layout=org.apache.log4j.PatternLayout# Pattern to output the caller's file name and line number.#log4j....