|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.util.logging.LoggingUtil
public final class LoggingUtil
Utility methods for logger management.
Constructor Summary | |
---|---|
LoggingUtil()
|
Method Summary | |
---|---|
static PrintStream |
rebindStdErr(org.apache.log4j.Logger logger)
Re-binds System.err to given logger. |
static PrintStream |
rebindStdOut(org.apache.log4j.Logger logger)
Re-binds System.out to given logger. |
static void |
rebindStdOutErr(File file)
Re-binds System.out and System.err to given file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoggingUtil()
Method Detail |
---|
public static PrintStream rebindStdOut(org.apache.log4j.Logger logger)
System.out
to given logger.
logger
- the logger to bind standard output to
public static PrintStream rebindStdErr(org.apache.log4j.Logger logger)
System.err
to given logger.
logger
- the logger to bind standard error to
public static void rebindStdOutErr(File file)
System.out
and System.err
to given file.
file
- file to use for standard output and error streams
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |