Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.internetitem.logback.elasticsearch;
 
 
 
 
    public ElasticsearchAppender() {
    }
    public ElasticsearchAppender(Settings settings) {
        super(settings);
    }
    @Override
    protected void appendInternal(ILoggingEvent eventObject) {
        String targetLogger = eventObject.getLoggerName();
        String loggerName = .getLoggerName();
        if (loggerName != null && loggerName.equals(targetLogger)) {
            return;
        }
        String errorLoggerName = .getErrorLoggerName();
        if (errorLoggerName != null && errorLoggerName.equals(targetLogger)) {
            return;
        }
        eventObject.prepareForDeferredProcessing();
        if (.isIncludeCallerData()) {
            eventObject.getCallerData();
        }
        publishEvent(eventObject);
    }
    }
New to GrepCode? Check out our FAQ X