public class LogLog
extends java.lang.Object
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: ".
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIG_DEBUG_KEY
Deprecated.
Use
DEBUG_KEY instead. |
static java.lang.String |
DEBUG_KEY
Defining this value makes log4j print log4j-internal debug
statements to
System.out . |
Constructor and Description |
---|
LogLog() |
Modifier and Type | Method and Description |
---|---|
static void |
debug(java.lang.String msg)
This method is used to output log4j internal debug
statements.
|
static void |
debug(java.lang.String msg,
java.lang.Throwable t)
This method is used to output log4j internal debug
statements.
|
static void |
error(java.lang.String msg)
This method is used to output log4j internal error
statements.
|
static void |
error(java.lang.String msg,
java.lang.Throwable t)
This method is used to output log4j internal error
statements.
|
static void |
setInternalDebugging(boolean enabled)
Allows to enable/disable log4j internal logging.
|
static void |
setQuietMode(boolean quietMode)
In quite mode no LogLog generates strictly no output, not even
for errors.
|
static void |
warn(java.lang.String msg)
This method is used to output log4j internal warning
statements.
|
static void |
warn(java.lang.String msg,
java.lang.Throwable t)
This method is used to output log4j internal warnings.
|
public static final java.lang.String DEBUG_KEY
System.out
.
The value of this string is log4j.debug.
Note that the search for all option names is case sensitive.
public static final java.lang.String CONFIG_DEBUG_KEY
DEBUG_KEY
instead.System.out
.
The value of this string is log4j.configDebug.
Note that the search for all option names is case sensitive.
public static void setInternalDebugging(boolean enabled)
public static void debug(java.lang.String msg)
System.out
.public static void debug(java.lang.String msg, java.lang.Throwable t)
System.out
.public static void error(java.lang.String msg)
System.err
.public static void error(java.lang.String msg, java.lang.Throwable t)
System.err
.public static void setQuietMode(boolean quietMode)
quietMode
- A true for notpublic static void warn(java.lang.String msg)
System.err
.public static void warn(java.lang.String msg, java.lang.Throwable t)
System.err
.Copyright © 2010 - 2020 Adobe. All Rights Reserved