Class DefaultConsoleOutputInterceptor

  • All Implemented Interfaces:
    ConsoleOutputInterceptor

    public class DefaultConsoleOutputInterceptor
    extends Object
    implements ConsoleOutputInterceptor
    Default implementation of a console output interceptor. Hooks the System.out and System.err streams to do its work, thus it is critical that there's only one instance of this service in a given JVM. This imlementation automatically hooks the streams when at least one target is registered, and unhooks them when the last target unregisters.
    Author:
    Rene Schneider - initial API and implementation