com.agido.logback.elasticsearch.config.ElasticsearchProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of logback-elasticsearch-appender Show documentation
Show all versions of logback-elasticsearch-appender Show documentation
Send log events directly from Logback to Elasticsearch
The newest version!
package com.agido.logback.elasticsearch.config;
import java.util.ArrayList;
import java.util.List;
/**
* this holds the information from the appender/properties tag (in logback.xml)
*/
public class ElasticsearchProperties {
private List properties;
public ElasticsearchProperties() {
this.properties = new ArrayList();
}
public List getProperties() {
return properties;
}
/**
* this is called by logback for each property tag contained in the properties tag
*/
public void addProperty(Property property) {
properties.add(property);
}
/**
* this is called by logback for each esProperty tag contained in the properties tag
*/
public void addEsProperty(Property property) {
properties.add(property);
}
}