Apache log4j的官方介绍是“log4j is a reliable, fast and flexible logging framework (APIs) written in Java, which is distributed under the Apache Software License. log4j is highly configurable through external configuration files at runtime. It views the log…
1.Logger类 通过Logger类的静态方法Logger.getRootLogger得到RootLogger.所有其他的loggers是通过静态方法Logger.getLogger来实例化并获取的.这个方法Logger.getLogger把所想要的logger的名字作为参数. Logger类的一些其它基本方法在下面列出: package org.apache.log4j; public class Logger { // Creation and retrieval methods: …