|
Log4j 1.3alpha-7 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.log4j.helpers.LogLog
This class used to output log statements from within the log4j package.
Log4j components cannot make log4j logging calls. However, it is sometimes useful for the user to learn about what log4j is doing. You can enable log4j internal logging by defining the log4j.configDebug variable.
All log4j internal debug calls go to System.out
where as internal error messages are sent to
System.err
. All internal messages are prepended with
the string "log4j: ".
Field Summary | |
static String |
CORE_DEBUG_KEY
Defining this value makes log4j print log4j-internal debug statements to System.out .
|
protected static boolean |
debugEnabled
|
Constructor Summary | |
LogLog()
|
Method Summary | |
static void |
debug(String msg)
This method is used to output log4j internal debug statements. |
static void |
debug(String msg,
Throwable t)
This method is used to output log4j internal debug statements. |
static void |
error(String msg)
Deprecated. Use Logger instead. |
static void |
error(String msg,
Throwable t)
Deprecated. Use Logger instead. |
static void |
info(String msg)
|
static void |
setInternalDebugging(boolean enabled)
Allows to enable/disable log4j internal logging. |
static void |
setQuietMode(boolean quietMode)
Deprecated. with no replacement |
static void |
warn(String msg)
Deprecated. Use Logger instead. |
static void |
warn(String msg,
Throwable t)
Deprecated. Use Logger instead. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String CORE_DEBUG_KEY
System.out
.
The value of this string is log4j.debug.
Note that the search for all option names is case sensitive.
protected static boolean debugEnabled
Constructor Detail |
public LogLog()
Method Detail |
public static void setInternalDebugging(boolean enabled)
public static void debug(String msg)
System.out
.
public static void info(String msg)
public static void debug(String msg, Throwable t)
System.out
.
public static void error(String msg)
Logger
instead.
System.err
.
public static void error(String msg, Throwable t)
Logger
instead.
System.err
.
public static void setQuietMode(boolean quietMode)
quietMode
- A true for notpublic static void warn(String msg)
Logger
instead.
System.err
.
public static void warn(String msg, Throwable t)
Logger
instead.
System.err
.
|
Log4j 1.3alpha-7 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |