com.internetitem.logback.elasticsearch.ElasticsearchAccessAppender Maven / Gradle / Ivy
package com.internetitem.logback.elasticsearch;
import java.io.IOException;
import ch.qos.logback.access.spi.IAccessEvent;
import com.internetitem.logback.elasticsearch.config.Settings;
public class ElasticsearchAccessAppender extends AbstractElasticsearchAppender {
public ElasticsearchAccessAppender() {
}
public ElasticsearchAccessAppender(Settings settings) {
super(settings);
}
@Override
protected void appendInternal(IAccessEvent eventObject) {
eventObject.prepareForDeferredProcessing();
publishEvent(eventObject);
}
protected AccessElasticsearchPublisher buildElasticsearchPublisher() throws IOException {
return new AccessElasticsearchPublisher(getContext(), errorReporter, settings, elasticsearchProperties, headers);
}
}