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

biz.paluch.logging.gelf.MdcMessageField Maven / Gradle / Ivy

There is a newer version: 1.15.1
Show newest version
package biz.paluch.logging.gelf;

/**
 */
public class MdcMessageField implements MessageField {

    private String name;
    private String mdcName;

    public MdcMessageField(String name, String mdcName) {
        this.mdcName = mdcName;
        this.name = name;
    }

    public String getMdcName() {
        return mdcName;
    }

    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer();
        sb.append(getClass().getSimpleName());
        sb.append(" [name='").append(name).append('\'');
        sb.append(", mdcName='").append(mdcName).append('\'');
        sb.append(']');
        return sb.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy