1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
- <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
- <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern"
- value="%p - %c.%M(%L) | %m%n"/>
- </layout>
- </appender>
- <appender name="DailyFile" class="org.apache.log4j.DailyRollingFileAppender">
- <param name="File" value="${catalina.base}/logs/nwyj.log"/>
- <param name="Append" value="true"/>
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d [%t] %p - %c.%M(%L) | %m%n"/>
- </layout>
- </appender>
-
- <!-- <appender name="MongoDB" class="com.sinosoft.lz.common.log4j.TestAppender">
- <param name="host" value="localhost"/>
- <param name="port" value="27017"/>
- <param name="database" value="gzfwDB"/>
- <param name="collection" value="gzfwLog"/>
- <param name="collectionPattern" value="%X{version}"/>
- <param name="warnOrHigherWriteConcern" value="FSYNC_SAFE"/>
- <layout class="org.apache.log4j.PatternLayout">
- </layout>
- </appender> -->
-
- <logger name="org.apache">
- <level value="info"/>
- </logger>
- <logger name="org.hibernate">
- <level value="info"/>
- </logger>
- <logger name="org.hibernate.SQL">
- <level value="info"/>
- </logger>
- <logger name="org.springframework">
- <level value="info"/>
- </logger>
- <logger name="org.springframework.aop.framework.Cglib2AopProxy">
- <level value="info"/>
- </logger>
- <logger name="com.sysmodel">
- <level value="info"/>
- </logger>
- <logger name="com.aweb">
- <level value="info"/>
- </logger>
- <logger name="com.nxt.robber">
- <level value="info"/>
- </logger>
- <logger name="com.mchange">
- <level value="info"/>
- </logger>
- <root>
- <level value="info"/>
- <appender-ref ref="DailyFile"/>
- <appender-ref ref="CONSOLE"/>
- <!-- <appender-ref ref="MongoDB"/> -->
- </root>
- </log4j:configuration>
|