package com.yammer.dropwizard.logging;

// TODO: 10/12/11 <coda> -- test LogFormatter
// TODO: 10/12/11 <coda> -- document LogFormatter

import ch.qos.logback.classic.LoggerContext;
import ch.qos.logback.classic.PatternLayout;

import java.util.TimeZone;

public class LogFormatter extends PatternLayout {
    public LogFormatter(LoggerContext context, TimeZone timeZone) {
        super();
        getDefaultConverterMap().put("ex", PrefixedThrowableProxyConverter.class.getName());
        setPattern("%-5p [%d{ISO8601," + timeZone.getID() + "}] %c: %m\n%ex");
        setContext(context);
    }
}

@@ -497,16 +497,26 @@
 attern(%22
+%5B%25thread%5D 
 %25-5p %5B%25d

add thread info.