/*
 * Decompiled with CFR 0.152.
 */
package org.apache.logging.log4j.core.pattern;

import org.apache.logging.log4j.core.LogEvent;
import org.apache.logging.log4j.core.config.plugins.Plugin;
import org.apache.logging.log4j.core.pattern.ConverterKeys;
import org.apache.logging.log4j.core.pattern.LogEventPatternConverter;

@Plugin(name="NdcPatternConverter", category="Converter")
@ConverterKeys(value={"x", "NDC"})
public final class NdcPatternConverter
extends LogEventPatternConverter {
    private static final NdcPatternConverter INSTANCE = new NdcPatternConverter();

    private NdcPatternConverter() {
        super("NDC", "ndc");
    }

    public static NdcPatternConverter newInstance(String[] options) {
        return INSTANCE;
    }

    @Override
    public void format(LogEvent event, StringBuilder toAppendTo) {
        toAppendTo.append(event.getContextStack());
    }
}
