From 762f353e0ea0a841debd138d136fff6913aa4db3 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Mon, 26 Jan 2015 13:48:27 -0700 Subject: [PATCH] Reverting default behavior of StdErrLog to original format. + Making tagPad default 0 (not 50) as this preserves backward compatibility for those folks that rely on the output format being a certain way. + Moving lookup from System properties to Logging properties format instead --- .../src/main/java/org/eclipse/jetty/util/log/StdErrLog.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/log/StdErrLog.java b/jetty-util/src/main/java/org/eclipse/jetty/util/log/StdErrLog.java index 704aee25654..7a322f28ac5 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/log/StdErrLog.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/log/StdErrLog.java @@ -93,7 +93,8 @@ import org.eclipse.jetty.util.annotation.ManagedObject; public class StdErrLog extends AbstractLogger { private static final String EOL = System.getProperty("line.separator"); - private static int __tagpad = Integer.getInteger("org.eclipse.jetty.util.log.StdErrLog.TAG_PAD",50); + // Do not change output format lightly, people rely on this output format now. + private static int __tagpad = Integer.parseInt(Log.__props.getProperty("org.eclipse.jetty.util.log.StdErrLog.TAG_PAD","0")); private static DateCache _dateCache; private static final Properties __props = new Properties();