Log4j 0.9.1

org.log4j.helpers
Class LogLog

java.lang.Object
  |
  +--org.log4j.helpers.LogLog

public class LogLog
extends Object

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

Since:
0.8.2
Author:
Ceki Gülcü

Field Summary
static String CONFIG_DEBUG_KEY
          Defining this value makes configurators print debug statements to System.out while parsing configuration files.
protected static boolean configDebugEnabled
           
 
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)
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_DEBUG_KEY

public static final String CONFIG_DEBUG_KEY
Defining this value makes configurators print debug statements to System.out while parsing configuration files.

The value of this string is log4j.configDebug.

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


configDebugEnabled

protected static boolean configDebugEnabled
Constructor Detail

LogLog

public LogLog()
Method Detail

setInternalDebugging

public static void setInternalDebugging(boolean enabled)
Allows to enable/disable log4j internal logging.

debug

public static void debug(String msg)
This method is used to output log4j internal debug statements. Output goes to System.out.

debug

public static void debug(String msg,
                         Throwable t)
This method is used to output log4j internal debug statements. Output goes to System.out.

error

public static void error(String msg)
This method is used to output log4j internal error statements. There is no way for disabling error statements. Output goes to System.err.

error

public static void error(String msg,
                         Throwable t)
This method is used to output log4j internal error statements. There is no way for disabling error statements. Output goes to System.err.

Log4j 0.9.1

Please notify me about new log4j releases.