Add a new filter to log only updates, deletes and inserts

Signed-off-by: default avatarMozart Pistori Tomazetti <mpt06@c3sl.ufpr.br>
parent 8f684dec
......@@ -2,12 +2,16 @@
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="App" class="org.apache.log4j.DailyRollingFileAppender">
<param name="File" value="/var/lib/tomcat6/other_logs/app"/>
<appender name="Method" class="org.apache.log4j.DailyRollingFileAppender">
<param name="File" value="/var/lib/tomcat7/other_logs/method"/>
<param name="DatePattern" value="'.'yyyy-MM-dd'.txt'"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} %m%n"/>
</layout>
<filter class="org.apache.log4j.varia.StringMatchFilter">
<param name="StringToMatch" value="method=[GET]" />
<param name="AcceptOnMatch" value="false" />
</filter>
<filter class="org.apache.log4j.varia.StringMatchFilter">
<param name="StringToMatch" value="Publishing event in WebApplicationContext for namespace 'participatorio-servlet': ServletRequestHandledEvent:" />
<param name="AcceptOnMatch" value="true" />
......@@ -16,7 +20,7 @@
</appender>
<appender name="Id" class="org.apache.log4j.DailyRollingFileAppender">
<param name="File" value="/var/lib/tomcat6/other_logs/id"/>
<param name="File" value="/var/lib/tomcat7/other_logs/id"/>
<param name="DatePattern" value="'.'yyyy-MM-dd'.txt'"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} %m%n"/>
......@@ -24,7 +28,7 @@
</appender>
<appender name="Login" class="org.apache.log4j.DailyRollingFileAppender">
<param name="File" value="/var/lib/tomcat6/other_logs/login"/>
<param name="File" value="/var/lib/tomcat7/other_logs/login"/>
<param name="DatePattern" value="'.'yyyy-MM-dd'.txt'"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} %m%n"/>
......@@ -141,7 +145,7 @@
<logger additivity="false" name="org.springframework.web.context.support.XmlWebApplicationContext">
<level value="trace"/>
<appender-ref ref="App"/>
<appender-ref ref="Method"/>
</logger>
<logger additivity="false" name="org.hibernate.internal.util.EntityPrinter">
<level value="trace"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment