public class

LogLog

extends Object
java.lang.Object
   ↳ org.apache.log4j.helpers.LogLog

Class Overview

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: ".

Summary

Constants
String CONFIG_DEBUG_KEY This constant is deprecated. Use DEBUG_KEY instead.
String DEBUG_KEY Defining this value makes log4j print log4j-internal debug statements to System.out.
Fields
protected static boolean debugEnabled
Public Constructors
LogLog()
Public Methods
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)
This method is used to output log4j internal error statements.
static void error(String msg, 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(String msg, Throwable t)
This method is used to output log4j internal warnings.
static void warn(String msg)
This method is used to output log4j internal warning statements.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String CONFIG_DEBUG_KEY

This constant is deprecated.
Use DEBUG_KEY instead.

Defining this value makes log4j components print log4j-internal debug statements to System.out.

The value of this string is log4j.configDebug.

Note that the search for all option names is case sensitive.

Constant Value: "log4j.configDebug"

public static final String DEBUG_KEY

Defining this value makes log4j print log4j-internal debug statements to System.out.

The value of this string is log4j.debug.

Note that the search for all option names is case sensitive.

Constant Value: "log4j.debug"

Fields

protected static boolean debugEnabled

Public Constructors

public LogLog ()

Public Methods

public static void debug (String msg)

This method is used to output log4j internal debug statements. Output goes to System.out.

public static void debug (String msg, Throwable t)

This method is used to output log4j internal debug statements. Output goes to System.out.

public static void error (String msg)

This method is used to output log4j internal error statements. There is no way to disable error statements. Output goes to System.err.

public static void error (String msg, Throwable t)

This method is used to output log4j internal error statements. There is no way to disable error statements. Output goes to System.err.

public static void setInternalDebugging (boolean enabled)

Allows to enable/disable log4j internal logging.

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

public static void warn (String msg, Throwable t)

This method is used to output log4j internal warnings. There is no way to disable warning statements. Output goes to System.err.

public static void warn (String msg)

This method is used to output log4j internal warning statements. There is no way to disable warning statements. Output goes to System.err.