Project

General

Profile

Revision bb3317c0

IDbb3317c074f8be4ed1886709ed08c5cc2a67b7fd
Parent 721dde11
Child 112716b9

Added by Cherian Mathew over 5 years ago

Add log4j extras to apply expression filters

View differences:

eu.etaxonomy.taxeditor.cdmlib/.classpath
1 1
<?xml version="1.0" encoding="UTF-8"?>
2 2
<classpath>
3
	<classpathentry exported="true" kind="lib" path="lib/cdmlib-commons-3.6.3-SNAPSHOT.jar"/>
4
	<classpathentry exported="true" kind="lib" path="lib/cdmlib-ext-3.6.3-SNAPSHOT.jar"/>
5
	<classpathentry exported="true" kind="lib" path="lib/cdmlib-io-3.6.3-SNAPSHOT.jar"/>
6
	<classpathentry exported="true" kind="lib" path="lib/cdmlib-model-3.6.3-SNAPSHOT.jar"/>
7
	<classpathentry exported="true" kind="lib" path="lib/cdmlib-persistence-3.6.3-SNAPSHOT.jar"/>
8
	<classpathentry exported="true" kind="lib" path="lib/cdmlib-print-3.6.3-SNAPSHOT.jar"/>
9
	<classpathentry exported="true" kind="lib" path="lib/cdmlib-remote-3.6.3-SNAPSHOT.jar"/>
10
	<classpathentry exported="true" kind="lib" path="lib/cdmlib-services-3.6.3-SNAPSHOT.jar"/>
11 3
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
12 4
	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
13 5
	<classpathentry including="**/*.java" kind="src" path="src/main/java"/>
......
197 189
	<classpathentry exported="true" kind="lib" path="lib/xmlbeans-2.3.0.jar"/>
198 190
	<classpathentry exported="true" kind="lib" path="lib/poi-ooxml-schemas-3.10-FINAL.jar"/>
199 191
	<classpathentry exported="true" kind="lib" path="lib/swagger-annotations-1.3.5.jar"/>
192
	<classpathentry exported="true" kind="lib" path="lib/cdmlib-commons-3.6.3-SNAPSHOT.jar"/>
193
	<classpathentry exported="true" kind="lib" path="lib/cdmlib-ext-3.6.3-SNAPSHOT.jar"/>
194
	<classpathentry exported="true" kind="lib" path="lib/cdmlib-io-3.6.3-SNAPSHOT.jar"/>
195
	<classpathentry exported="true" kind="lib" path="lib/cdmlib-model-3.6.3-SNAPSHOT.jar"/>
196
	<classpathentry exported="true" kind="lib" path="lib/cdmlib-persistence-3.6.3-SNAPSHOT.jar"/>
197
	<classpathentry exported="true" kind="lib" path="lib/cdmlib-print-3.6.3-SNAPSHOT.jar"/>
198
	<classpathentry exported="true" kind="lib" path="lib/cdmlib-remote-3.6.3-SNAPSHOT.jar"/>
199
	<classpathentry exported="true" kind="lib" path="lib/cdmlib-services-3.6.3-SNAPSHOT.jar"/>
200
	<classpathentry exported="true" kind="lib" path="lib/apache-log4j-extras-1.2.17.jar"/>
200 201
	<classpathentry kind="output" path="target/classes"/>
201 202
</classpath>
eu.etaxonomy.taxeditor.cdmlib/META-INF/MANIFEST.MF
662 662
 lib/cdmlib-persistence-3.6.3-SNAPSHOT.jar,
663 663
 lib/cdmlib-print-3.6.3-SNAPSHOT.jar,
664 664
 lib/cdmlib-remote-3.6.3-SNAPSHOT.jar,
665
 lib/cdmlib-services-3.6.3-SNAPSHOT.jar
665
 lib/cdmlib-services-3.6.3-SNAPSHOT.jar,
666
 lib/apache-log4j-extras-1.2.17.jar
666 667
Import-Package: eu.etaxonomy.cdm.api.application
eu.etaxonomy.taxeditor.cdmlib/build.properties
192 192
               lib/cdmlib-persistence-3.6.3-SNAPSHOT.jar,\
193 193
               lib/cdmlib-print-3.6.3-SNAPSHOT.jar,\
194 194
               lib/cdmlib-remote-3.6.3-SNAPSHOT.jar,\
195
               lib/cdmlib-services-3.6.3-SNAPSHOT.jar
195
               lib/cdmlib-services-3.6.3-SNAPSHOT.jar,\
196
               lib/apache-log4j-extras-1.2.17.jar
196 197

  
197 198
jars.compile.order = .
198 199
output.. = bin/
eu.etaxonomy.taxeditor.test/src/test/resources/log4j.properties
1
### ************ APPENDER ***********************************###
2

  
3
### direct log messages to stdout ###
4
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
5
log4j.appender.stdout.Target=System.out
6
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
7
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
8

  
9

  
10
### ************* LOG LEVELS *********************************###
11

  
12
### set log levels - for more verbose logging change 'info' to 'debug' ###
13
### levels: error, warn, debug, info
14
log4j.rootLogger=WARN, stdout
15

  
16
### set directory-specific levels below
17
#log4j.logger.eu.etaxonomy.taxeditor = INFO
eu.etaxonomy.taxeditor.test/src/test/resources/log4j.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
3
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
4
    <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"> 
5
        <param name="Target" value="System.out"/>
6
        <layout class="org.apache.log4j.PatternLayout"> 
7
            <param name="ConversionPattern" value="%d %p [%c] - %m%n"/>
8
        </layout>
9
        <filter class="org.apache.log4j.filter.ExpressionFilter">
10
            <param name="expression" value="msg like  '.*has a maxElementsInMemory of 0. This might lead to performance degradation or OutOfMemoryError at Terracotta client.*'" />
11
            <param name="acceptOnMatch" value="false"/>
12
        </filter>            
13
    </appender>
14
    <root>
15
        <priority value ="WARN" />
16
        <appender-ref ref="CONSOLE"/>
17
    </root>
18
</log4j:configuration>

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)