Skip to content

Commit

Permalink
#622 fix(using logback, not log4j )
Browse files Browse the repository at this point in the history
  • Loading branch information
qifeng-bai authored and djtfmartin committed Mar 3, 2022
1 parent df548f1 commit 69e5aa1
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public class DistributionOutlierPipeline {
static String NEW_RECORD_COUNTER = "NewRecordCounter";

public static void main(String[] args) throws Exception {
log.debug("debug test");
VersionInfo.print();
CombinedYamlConfiguration conf = new CombinedYamlConfiguration(args);
String[] combinedArgs = conf.toArgs("general", "outlier");
Expand Down

This file was deleted.

57 changes: 57 additions & 0 deletions livingatlas/pipelines/src/main/resources/logback-test.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<configuration>
<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator">
<resetJUL>true</resetJUL>
</contextListener>
<!-- Stop output INFO at start -->
<statusListener class="ch.qos.logback.core.status.NopStatusListener" />

<property name="defaultPattern" value="%-5level [%date{'yyyy-MM-dd HH:mm:ss,SSSZ'}] [%thread] %logger: %msg%n%xEx"/>

<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${defaultPattern}</pattern>
</encoder>
</appender>

<logger name="ch.qos.logback" level="error" additivity="false">
<appender-ref ref="CONSOLE"/>
</logger>

<logger name="au.org.ala" level="info" additivity="false">
<appender-ref ref="CONSOLE"/>
</logger>

<logger name="org.gbif.pipelines" level="info" additivity="false">
<appender-ref ref="CONSOLE"/>
</logger>

<logger name="org.spark-project.jetty" level="warn" additivity="false">
<appender-ref ref="CONSOLE"/>
</logger>
<logger name="org.gbif.common.parsers" level="error" additivity="false">
<appender-ref ref="CONSOLE"/>
</logger>
<logger name="org.gbif.geocode.api.cache" level="error" additivity="false">
<appender-ref ref="CONSOLE"/>
</logger>
<logger name="org.gbif.pipelines.core.parsers.location.cache.GeocodeBitmapCache" level="error" additivity="false">
<appender-ref ref="CONSOLE"/>
</logger>

<logger name="org.gbif.dwc.terms.TermFactory" level="error" additivity="false">
<appender-ref ref="CONSOLE"/>
</logger>
<logger name="org.gbif.vocabulary.lookup" level="error" additivity="false">
<appender-ref ref="CONSOLE"/>
</logger>
<logger name="org.apache.beam.runners.spark.translation" level="error" additivity="false">
<appender-ref ref="CONSOLE"/>
</logger>

<root level="error">
<appender-ref ref="CONSOLE"/>
</root>

<include file="${logback.configurationFile}"/>

</configuration>

0 comments on commit 69e5aa1

Please sign in to comment.