以下是上麵的例子使用log.setLevel(Level.WARN)方法的配置文件與上麵的例子例子功能一樣。 # Define the root logger with appender file log = /usr/home/log4j log4j.
確定! 回上一頁