All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy