-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix JUnitXMLReporter not logging from JGroups threads
* Added a test configuration with the STDOUT appender to be utilized. This way our custom reporter captures the output from the JGroups threads in the output file. * Update the files to use a log extension. * Added color to the console output.
- Loading branch information
Showing
3 changed files
with
40 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<configuration> | ||
<appenders> | ||
<!-- follow=true doesn't work on Windows with jline/jansi --> | ||
<Console name="STDOUT" target="SYSTEM_OUT" follow="false"> | ||
<PatternLayout pattern="%-7d{HH:mm:ss,SSS} [%p] [%t] (%c{1.}): %m%n"/> | ||
<!--<PatternLayout pattern="%r [%p] %c{1}: %m%n"/>--> | ||
</Console> | ||
</appenders> | ||
<loggers> | ||
<root level="${env:LOG_LEVEL:-WARN}"> | ||
<appender-ref ref="STDOUT"/> | ||
</root> | ||
|
||
<!-- Utilize the STDOUT appender to find the JUnitXMLReporter. --> | ||
<!-- Additivity false, otherwise we write to the root logger. --> | ||
<logger name="org.jgroups" level="${env:LOG_LEVEL:-WARN}" additivity="false"> | ||
<appender-ref ref="STDOUT"/> | ||
</logger> | ||
</loggers> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters