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

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

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

/**
 */
public class StaticMessageField implements MessageField {

    private String name;
    private String value;

    public StaticMessageField(String name, String value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public String getValue() {
        return value;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy