Browse files

Fix the damnable pattern header crap.

How is this a default?
  • Loading branch information...
1 parent 17b24f8 commit 95b81655ca5c61a3f897c7d0ba544f65573d4e1f @codahale codahale committed May 18, 2012
View
1 dropwizard-core/src/main/java/com/yammer/dropwizard/logging/LogFormatter.java
@@ -11,6 +11,7 @@
public class LogFormatter extends PatternLayout {
public LogFormatter(LoggerContext context, TimeZone timeZone) {
super();
+ setOutputPatternAsHeader(false);
getDefaultConverterMap().put("ex", PrefixedThrowableProxyConverter.class.getName());
setPattern("%-5p [%d{ISO8601," + timeZone.getID() + "}] %c: %m\n%ex");
setContext(context);
View
1 dropwizard-core/src/main/java/com/yammer/dropwizard/logging/LogbackFactory.java
@@ -23,6 +23,7 @@ public static SyslogAppender buildSyslogAppender(SyslogConfiguration syslog,
LoggerContext context,
String name) {
final SyslogFormatter layout = new SyslogFormatter(context, syslog.getTimeZone(), name);
+ layout.setOutputPatternAsHeader(false);
layout.setContext(context);
layout.start();

0 comments on commit 95b8165

Please sign in to comment.