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

no.entur.logging.cloud.logback.logstash.test.CompositeConsoleOutputControlClosable Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package no.entur.logging.cloud.logback.logstash.test;

import java.io.Closeable;
import java.io.IOException;

/**
 *
 * Global log output console for use with testing.
 *
 */
public class CompositeConsoleOutputControlClosable implements Closeable {


    private final CompositeConsoleOutputType output;

    public CompositeConsoleOutputControlClosable(CompositeConsoleOutputType output) {
        this.output = output;
    }

    @Override
    public void close() {
        CompositeConsoleOutputControl.setOutput(output);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy