com.agido.logback.elasticsearch.ElasticsearchAccessAppender 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;
import ch.qos.logback.access.spi.IAccessEvent;
import com.agido.logback.elasticsearch.config.Settings;
import java.io.IOException;
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);
}
}