Skip to content

Commit

Permalink
Starting logback after logging-appender solves some issues in dev-lau…
Browse files Browse the repository at this point in the history
…ncher

EDIT: this was only a coincidence, see
#104 (comment)
  • Loading branch information
bertfrees committed Jun 21, 2016
1 parent 88a19ee commit fb14827
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 17 deletions.
24 changes: 13 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,6 @@
<configuration>
<outputDirectory>${project.build.directory}/bundles/felix</outputDirectory>
<artifactItems>
<artifactItem>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.0.11</version>
</artifactItem>
<artifactItem>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>1.0.11</version>
</artifactItem>
<artifactItem>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.gogo.command</artifactId>
Expand Down Expand Up @@ -587,6 +577,19 @@
<groupId>org.daisy.pipeline</groupId>
<artifactId>xproc-api</artifactId>
</artifactItem>
<!--
logback not started before logging-appender
-->
<artifactItem>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.0.11</version>
</artifactItem>
<artifactItem>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>1.0.11</version>
</artifactItem>
</artifactItems>
</configuration>
</execution>
Expand Down Expand Up @@ -1487,7 +1490,6 @@
<pipeline.ws.clientsecret>supersecret</pipeline.ws.clientsecret>
<pipeline.cli.exec_line>/dev/null</pipeline.cli.exec_line>
<pipeline.cli.starting>false</pipeline.cli.starting>
<pipeline.log.jobappender>org.daisy.pipeline.logging.IgnoreSiftAppender</pipeline.log.jobappender>
</properties>
<build>
<plugins>
Expand Down
1 change: 0 additions & 1 deletion src/main/assembly/dev.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ bundles.auto.deploy=../bundles/felix
bundles.bootstrap=../bundles/bootstrap
pipeline.ws.clientkey=clientid
pipeline.ws.clientsecret=supersecret
pipeline.log.jobappender=ch.qos.logback.classic.sift.SiftingAppender
3 changes: 0 additions & 3 deletions src/main/assembly/dev.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@
<includes>
<include>org.apache.felix.fileinstall-*.cfg</include>
</includes>
<excludes>
<exclude>org.apache.felix.fileinstall-o.d.p.logging-appender.cfg</exclude>
</excludes>
<outputDirectory>/etc</outputDirectory>
<filtered>true</filtered>
</fileSet>
Expand Down
1 change: 0 additions & 1 deletion src/main/assembly/dist.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ pipeline.ws.clientsecret=supersecret
pipeline.cli.starting=true
pipeline.cli.timeout=100
pipeline.cli.debug=false
pipeline.log.jobappender=org.daisy.pipeline.logging.IgnoreSiftAppender
2 changes: 1 addition & 1 deletion src/main/resources/etc/config-logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!-- see http://logback.qos.ch/manual/configuration.html#LevelChangePropagator -->
<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator"/>
<appender name="JOB" class="${pipeline.log.jobappender}">
<appender name="JOB" class="org.daisy.pipeline.logging.IgnoreSiftAppender">
<!-- in the absence of the class attribute, it is assumed that the
desired discriminator type is
ch.qos.logback.classic.sift.MDCBasedDiscriminator -->
Expand Down

0 comments on commit fb14827

Please sign in to comment.