Package com.iizix.log
Class ConsoleRedirector
- java.lang.Object
- com.iizix.log.ConsoleRedirector
 
- public final class ConsoleRedirector extends java.lang.ObjectClass to handle redirection of stdout and stderr to the logger.- Author:
- Christopher Mindus
 
- Method Summary- All Methods Static Methods Concrete Methods - Modifier and Type - Method - Description - static java.io.PrintStream[]- intialize()Starts the redirection of System.out and System.err.
 
- Method Detail- intialize- public static java.io.PrintStream[] intialize() Starts the redirection of System.out and System.err.- Returns:
- Array of length 2 original output streams, index 0 = stdout, 1 = stderr.
- Throws:
- java.lang.IllegalStateException- If this has already been done.
- java.lang.SecurityException- If a security manager exists and its- checkPermissionmethod doesn't allow reassigning of the standard output or error output stream.