Search in sources :

Example 1 with NullOut

use of com.att.aro.console.printstreamutils.NullOut in project VideoOptimzer by attdevsupport.

the class Application method prepareSystemOut.

private OutSave prepareSystemOut() {
    OutSave outSave = new OutSave(System.out, Logger.getRootLogger().getLevel());
    if (utilOut.getThreshold().ordinal() < UtilOut.MessageThreshold.Verbose.ordinal()) {
        Logger.getRootLogger().setLevel(Level.WARN);
        System.setOut(new PrintStream(new NullOut()));
    }
    return outSave;
}
Also used : PrintStream(java.io.PrintStream) OutSave(com.att.aro.console.printstreamutils.OutSave) NullOut(com.att.aro.console.printstreamutils.NullOut)

Aggregations

NullOut (com.att.aro.console.printstreamutils.NullOut)1 OutSave (com.att.aro.console.printstreamutils.OutSave)1 PrintStream (java.io.PrintStream)1