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

com.floragunn.searchguard.auditlog.impl.DebugAuditLog Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2016-2017 by floragunn GmbH - All rights reserved
 * 
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed here is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * 
 * This software is free of charge for non-commercial and academic use. 
 * For commercial use in a production environment you have to obtain a license 
 * from https://floragunn.com
 * 
 */

package com.floragunn.searchguard.auditlog.impl;

import java.nio.file.Path;

import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver;
import org.elasticsearch.cluster.service.ClusterService;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.threadpool.ThreadPool;

public final class DebugAuditLog extends AuditLogSink {

    public DebugAuditLog(final Settings settings, final Path configPath, ThreadPool threadPool,
            final IndexNameExpressionResolver resolver, final ClusterService clusterService) {
        super(settings, threadPool, resolver, clusterService);
    }

    public boolean isHandlingBackpressure() {
        return true;
    }

    @Override
    public void store(final AuditMessage msg) {
        System.out.println("AUDIT_LOG: " + msg.toPrettyString());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy