Package org.apache.log4j.helpers
Class LogLog
java.lang.Object
org.apache.log4j.helpers.LogLog
Logs statements from within Log4j.
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: ".
- Since:
- 0.8.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.static final StringMakes Log4j print log4j-internal debug statements toSystem.out.protected static booleanDebug enabled Enable or disable.private static final StatusLoggerprivate static booleanIn quietMode not even errors generate any output. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidLogs Log4j internal debug statements.static voidLogs Log4j internal debug statements.static voidLogs Log4j internal error statements.static voidLogs Log4j internal error statements.static voidsetInternalDebugging(boolean enabled) Enables and disables Log4j internal logging.static voidsetQuietMode(boolean quietMode) In quite mode no LogLog generates strictly no output, not even for errors.static voidLogs Log4j internal warning statements.static voidLogs Log4j internal warnings.
-
Field Details
-
LOGGER
-
DEBUG_KEY
Makes Log4j print log4j-internal debug statements toSystem.out.The value of this string is "log4j.debug"
Note that the search for all option names is case sensitive.
- See Also:
-
CONFIG_DEBUG_KEY
Deprecated.UseDEBUG_KEYinstead.Makes Log4j components print log4j-internal debug statements toSystem.out.The value of this string is "log4j.configDebug".
Note that the search for all option names is case sensitive.
- See Also:
-
debugEnabled
protected static boolean debugEnabledDebug enabled Enable or disable. -
quietMode
private static boolean quietModeIn quietMode not even errors generate any output.
-
-
Constructor Details
-
LogLog
public LogLog()
-
-
Method Details
-
debug
Logs Log4j internal debug statements.- Parameters:
message- the message object to log.
-
debug
Logs Log4j internal debug statements.- Parameters:
message- the message object to log.throwable- theThrowableto log, including its stack trace.
-
error
Logs Log4j internal error statements.- Parameters:
message- the message object to log.
-
error
Logs Log4j internal error statements.- Parameters:
message- the message object to log.throwable- theThrowableto log, including its stack trace.
-
setInternalDebugging
public static void setInternalDebugging(boolean enabled) Enables and disables Log4j internal logging.- Parameters:
enabled- Enable or disable.
-
setQuietMode
public static void setQuietMode(boolean quietMode) In quite mode no LogLog generates strictly no output, not even for errors.- Parameters:
quietMode- A true for not
-
warn
Logs Log4j internal warning statements.- Parameters:
message- the message object to log.
-
warn
Logs Log4j internal warnings.- Parameters:
message- the message object to log.throwable- theThrowableto log, including its stack trace.
-
DEBUG_KEYinstead.