Package com.alphacsp.common.logging

Examples of com.alphacsp.common.logging.PrintStreamLogInterceptor


        this.log = log;
        PrintStream printStream = delegate.getPrintStream();
        if (printStream instanceof PrintStreamLogInterceptor) {
            this.printStream = (PrintStreamLogInterceptor) printStream;
        } else {
            this.printStream = new PrintStreamLogInterceptor(printStream, log);
        }
    }
View Full Code Here


        return interceptionEnabled(System.err);
    }

    public static void interceptStdOut() {
        Assert.state(! stdOutInterceptionEnabled());
        PrintStream out = new PrintStreamLogInterceptor(System.out, UserInterfaceLogInterceptor.COMMONS_LOGGING_LOG);
        System.setOut(out);
    }
View Full Code Here

        System.setOut(out);
    }

    public static void interceptStdErr() {
        Assert.state(! stdErrInterceptionEnabled());
        PrintStream out = new PrintStreamLogInterceptor(System.err, UserInterfaceLogInterceptor.COMMONS_LOGGING_LOG);
        System.setOut(out);
    }
View Full Code Here

TOP

Related Classes of com.alphacsp.common.logging.PrintStreamLogInterceptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.