Skip to content

Commit

Permalink
Merge pull request #14 from zilverline/logging-to-stdout
Browse files Browse the repository at this point in the history
Logging to stdout
  • Loading branch information
ed1001 authored Feb 3, 2022
2 parents 1d64594 + 55514a5 commit b132543
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ RUN apk --update add openjdk8-jre tar
RUN mkdir /fop
WORKDIR /fop

COPY target/apache-fop-server-1.8-bin.tar.gz /fop/
COPY target/apache-fop-server-1.9-bin.tar.gz /fop/

RUN tar xfvz /fop/apache-fop-server-1.8-bin.tar.gz
RUN tar xfvz /fop/apache-fop-server-1.9-bin.tar.gz

EXPOSE 9999
CMD ["java", "-cp", "apache-fop-server.jar:lib/*", "org.zilverline.fop.FopServer"]
CMD ["java", "-cp", "apache-fop-server.jar:lib/*", "-Dlog4j.configuration=file:conf/log4j.properties", "org.zilverline.fop.FopServer"]
11 changes: 3 additions & 8 deletions conf/log4j.properties
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
log4j.rootLogger=INFO, R

log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=logs/apache-fop-server.log

log4j.appender.R.MaxFileSize=1000KB
# Keep one backup file
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R=org.apache.log4j.ConsoleAppender
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d{ISO8601} %-5p %c - %m%n

log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d{ISO8601} %-5p %c - %m%n

log4j.logger.org.zilverline=INFO
log4j.logger.org.eclipse.jetty=INFO
log4j.logger.org.apache.fop.apps.FOUserAgent=ERROR
log4j.logger.org.apache.fop=DEBUG
log4j.logger.org.apache.xmlgraphics=DEBUG
log4j.logger.org.apache.fop.fonts.truetype.TTFFile=ERROR
log4j.logger.org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader=ERROR
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.zilverline</groupId>
<artifactId>apache-fop-server</artifactId>
<version>1.8</version>
<version>1.9</version>
<packaging>jar</packaging>
<name>Apache FOP Server: ${project.artifactId}</name>
<properties>
Expand Down

0 comments on commit b132543

Please sign in to comment.