1 log4j.properties配置
1.1 配置logger的输出级别
log4j.logger.[logger_name]=DEBUG
这里的logger_name就是logger所在的类的类名。因为使用log4j时,某个类的logger就设置为它的类名。