We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
java.util.logging.ConsoleHandler directs output to stderr, but server output would be better sent to stdout.
java.util.logging.ConsoleHandler
stderr
stdout
By fixing this with a new handler, we can also reduce the logging.properties boilerplate...
logging.properties
System.out
WebServerLogFormatter
package io.helidon.common; import java.util.logging.Level; import java.util.logging.LogRecord; import java.util.logging.StreamHandler; public class HelidonConsoleHandler extends StreamHandler { public ConsoleHandler() { setOutputStream(System.out); setLevel(Level.ALL); // Handlers should not filter, loggers should setFormatter(new WebServerLogFormatter()); } @Override public void publish(LogRecord record) { super.publish(record); flush(); } @Override public void close() { flush(); } }
.level=INFO handlers=io.helidon.common.HelidonConsoleHandler java.util.logging.SimpleFormatter.format=%1$tY.%1$tm.%1$td %1$tH:%1$tM:%1$tS %4$s %3$s !thread!: %5$s%6$s%n
The text was updated successfully, but these errors were encountered:
Changes default logging to write to System.out. Fixes helidon-io#1144.
a79ecc5
Changes default logging to write to System.out. (#1145)
c082748
* Changes default logging to write to System.out. Fixes #1144. * Fixed copyrights.
batsatt
Successfully merging a pull request may close this issue.
java.util.logging.ConsoleHandler
directs output tostderr
, but server output would be better sent tostdout
.By fixing this with a new handler, we can also reduce the
logging.properties
boilerplate...System.out
and installs theWebServerLogFormatter
formatter:The text was updated successfully, but these errors were encountered: