public class LogUtil extends Object
PrintStream
s for log methods. This
class was borrowed from Nutch, a sub-project of Apache Lucene, and made
conformant to Java 1.5 coding style.Modifier and Type | Method and Description |
---|---|
static PrintStream |
getDebugStream(org.apache.commons.logging.Log logger)
Returns a PrintStream that logs all output with DEBUG method to the given
Commons Logging logger.
|
static PrintStream |
getErrorStream(org.apache.commons.logging.Log logger)
Returns a PrintStream that logs all output with ERROR method to the given
Commons Logging logger.
|
static PrintStream |
getFatalStream(org.apache.commons.logging.Log logger)
Returns a PrintStream that logs all output with FATAL method to the given
Commons Logging logger.
|
static PrintStream |
getInfoStream(org.apache.commons.logging.Log logger)
Returns a PrintStream that logs all output with INFO method to the given
Commons Logging logger.
|
static PrintStream |
getTraceStream(org.apache.commons.logging.Log logger)
Returns a PrintStream that logs all output with TRACE method to the given
Commons Logging logger.
|
static PrintStream |
getWarnStream(org.apache.commons.logging.Log logger)
Returns a PrintStream that logs all output with WARN method to the given
Commons Logging logger.
|
public static PrintStream getTraceStream(org.apache.commons.logging.Log logger)
public static PrintStream getDebugStream(org.apache.commons.logging.Log logger)
public static PrintStream getInfoStream(org.apache.commons.logging.Log logger)
public static PrintStream getWarnStream(org.apache.commons.logging.Log logger)
public static PrintStream getErrorStream(org.apache.commons.logging.Log logger)
public static PrintStream getFatalStream(org.apache.commons.logging.Log logger)
Copyright ©2007-2013 panFMP Developers c/o Uwe Schindler