Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #6037 - Review logging modules for j.u.l.
Fixed mistakes in logging-jul-capture.mod. Introduced java-util-logging-bridge.properties for the bridge module configuration. Added [exec] sections to specify the jul config file. Removed logging-jul-capture.xml, not necessary. Added tests to verify that the fixed modules work fine. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
- Loading branch information
Showing
6 changed files
with
126 additions
and
16 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
2 changes: 2 additions & 0 deletions
2
...home/src/main/resources/modules/logging/jul/resources/java-util-logging-bridge.properties
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,2 @@ | ||
handlers=org.slf4j.bridge.SLF4JBridgeHandler | ||
.level=FINEST |
11 changes: 6 additions & 5 deletions
11
jetty-home/src/main/resources/modules/logging/jul/resources/java-util-logging.properties
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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
.level=INFO | ||
handlers=java.util.logging.ConsoleHandler | ||
java.util.logging.ConsoleHandler.level=INFO | ||
java.util.logging.ConsoleHandler.level=FINEST | ||
java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter | ||
## Note: The java.util.logging.SimpleFormatter does NOT have the ability to display | ||
## the Thread name of when the logging event occurred, this will make debugging difficult | ||
## See https://stackoverflow.com/questions/6889057/printing-thread-name-using-java-util-logging | ||
java.util.logging.SimpleFormatter.format=%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS [%4$s] (%3$s) - %5$s%6$s%n | ||
#handlers = java.util.logging.FileHandler | ||
#java.util.logging.FileHandler.pattern = ${jetty.logging.dir}/jetty%u.log | ||
#java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter | ||
|
||
# handlers=java.util.logging.FileHandler | ||
# java.util.logging.FileHandler.pattern=${jetty.logging.dir}/jetty%u.log | ||
# java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter | ||
|
||
.level=INFO | ||
# org.eclipse.jetty.level=FINE |
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