1.配置可以是properties,xml 2.输出有好多种,文件,数据库 Log4j写入数据库详解 [url]http://blog.csdn.net/ziruobing/archive/2009/02/22/3919501.aspx[/url]