Skip to content

Commit

Permalink
Minor unit test log4J change
Browse files Browse the repository at this point in the history
  • Loading branch information
kpepper committed Apr 12, 2022
1 parent cef7fe7 commit 04458de
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@
<forkCount>${surefire.num.forks}</forkCount>
<reuseForks>false</reuseForks>
<testFailureIgnore>${ignore.test.failures}</testFailureIgnore>
<argLine>@{surefireArgLine} -Dlog4j.configuration=file:${project.build.testOutputDirectory}/log4j.properties</argLine>
<argLine>@{surefireArgLine} -Dlog4j.configurationFile=file:${project.build.testOutputDirectory}/log4j.properties</argLine>
<excludes>
<!-- Exclude manual adhoc tests -->
<exclude>**/RunBlastAtNCBITest.*</exclude>
Expand Down
8 changes: 6 additions & 2 deletions src/test/resources/log4j.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@

log4j1.compatibility=true

rootLogger=OFF

appender.console.type=Console
appender.console.name=LogToConsole
appender.console.layout.type=PatternLayout
appender.console.layout.pattern=[%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n
rootLogger.level=fatal
rootLogger.appenderRef.console.ref=LogToConsole

0 comments on commit 04458de

Please sign in to comment.