io.airlift.log.Format Maven / Gradle / Ivy
The newest version!
package io.airlift.log;
import java.util.Map;
import java.util.logging.Formatter;
public enum Format
{
JSON {
public Formatter createFormatter(Map logAnnotations)
{
return new JsonFormatter(logAnnotations);
}
},
TEXT {
public Formatter createFormatter(Map logAnnotations)
{
return new StaticFormatter(logAnnotations);
}
};
public abstract Formatter createFormatter(Map logAnnotations);
}