Skip to content

Commit

Permalink
Add log4j.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
mwodahl committed Jan 5, 2024
1 parent fe6f241 commit bc3394f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ RUN mvn clean package assembly:single
FROM eclipse-temurin:11-jre-alpine

COPY --from=builder /home/src/main/resources/logback.xml /home
COPY --from=builder /home/src/main/resources/log4j.properties /home
COPY --from=builder /home/target/jpo-aws-depositor-jar-with-dependencies.jar /home

CMD java -Dlogback.configurationFile=/home/logback.xml \
Expand Down
10 changes: 10 additions & 0 deletions src/main/resources/log4j.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Define the appender for AwsDepositor
log4j.appender.awsDepositor=org.apache.log4j.ConsoleAppender
log4j.appender.awsDepositor.layout=org.apache.log4j.PatternLayout
log4j.appender.awsDepositor.layout.ConversionPattern=%d [%t] %-5p %c{1} - %m%n

# Set the log level for AwsDepositor
log4j.logger.us.dot.its.jpo.ode.aws.depositor.AwsDepositor=WARN
log4j.additivity.us.dot.its.jpo.ode.aws.depositor.AwsDepositor=false
log4j.appender.awsDepositor.threshold=DEBUG
log4j.appender.awsDepositor.Target=System.out

0 comments on commit bc3394f

Please sign in to comment.