com.dynamide.util
Class Log

java.lang.Object
  extended by com.dynamide.util.Log

public class Log
extends java.lang.Object

This is a wrapper class around log4j. See log4j javadoc . This file doesn't report its log location automatically. If you want to know where the conf comes from, use: getConfigFile() .


Field Summary
static java.lang.String DEFAULT_EXT
           
protected static Log log
          Singleton.
 
Method Summary
static Log configure(java.lang.String configFile)
          Configure logging from the given config file name.
static void debug(java.lang.Class catClass, java.lang.String message)
           
static void debug(java.lang.Class catClass, java.lang.String message, java.lang.Throwable throwable)
           
static void debug(java.lang.Object caller, java.lang.String message)
           
static void debug(java.lang.Object caller, java.lang.String message, java.lang.Throwable throwable)
           
static void debug(java.lang.String categoryID, java.lang.String message)
           
static void debug(java.lang.String categoryID, java.lang.String message, java.lang.Throwable throwable)
           
static void error(java.lang.Class catClass, java.lang.String message)
           
static void error(java.lang.Class catClass, java.lang.String message, java.lang.Throwable throwable)
           
static void error(java.lang.Object caller, java.lang.String message)
           
static void error(java.lang.Object caller, java.lang.String message, java.lang.Throwable throwable)
           
static void error(java.lang.String categoryID, java.lang.String message)
           
static void error(java.lang.String categoryID, java.lang.String message, java.lang.Throwable throwable)
           
 java.lang.String getConfigFile()
          Returns the name of the config file being used, if a config file other than the default is to be used.
static Log getInstance()
          Get the singleton Log instance, instantiating if necessary.
static void info(java.lang.Class catClass, java.lang.String message)
           
static void info(java.lang.Class catClass, java.lang.String message, java.lang.Throwable throwable)
           
static void info(java.lang.Object caller, java.lang.String message)
           
static void info(java.lang.Object caller, java.lang.String message, java.lang.Throwable throwable)
           
static void info(java.lang.String categoryID, java.lang.String message)
           
static void info(java.lang.String categoryID, java.lang.String message, java.lang.Throwable throwable)
           
static boolean isDebugEnabled(java.lang.Class catClass)
           
static boolean isDebugEnabled(java.lang.Object caller)
           
protected  boolean isEnabledFor(java.lang.Class catClass, org.apache.log4j.Priority priority)
           
 boolean isEnabledFor(java.lang.String categoryID, org.apache.log4j.Priority priority)
           
static boolean isInfoEnabled(java.lang.Class catClass)
           
static boolean isInfoEnabled(java.lang.Object caller)
           
protected  void logMessage(java.lang.Class catClass, org.apache.log4j.Priority priority, java.lang.String message, java.lang.Throwable throwable)
           
protected  void logMessage(java.lang.Object object, org.apache.log4j.Priority priority, java.lang.String message, java.lang.Throwable throwable)
           
protected  void logMessage(java.lang.String categoryID, org.apache.log4j.Priority priority, java.lang.String message, java.lang.Throwable throwable)
           
static void main(java.lang.String[] args)
           
static java.lang.String pop()
           
static void println(java.lang.String msg)
          Sends immediately to System.out.println, so you don't have to have that in your code.
static void push(java.lang.String context)
           
static void warn(java.lang.Class catClass, java.lang.String message)
           
static void warn(java.lang.Class catClass, java.lang.String message, java.lang.Throwable throwable)
           
static void warn(java.lang.Object caller, java.lang.String message)
           
static void warn(java.lang.Object caller, java.lang.String message, java.lang.Throwable throwable)
           
static void warn(java.lang.String categoryID, java.lang.String message)
           
static void warn(java.lang.String categoryID, java.lang.String message, java.lang.Throwable throwable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static Log log
Singleton.


DEFAULT_EXT

public static final java.lang.String DEFAULT_EXT
See Also:
Constant Field Values
Method Detail

getInstance

public static Log getInstance()
Get the singleton Log instance, instantiating if necessary.


getConfigFile

public java.lang.String getConfigFile()
Returns the name of the config file being used, if a config file other than the default is to be used.


configure

public static Log configure(java.lang.String configFile)
Configure logging from the given config file name.

Parameters:
configFile - The name of a config file to use

isEnabledFor

public boolean isEnabledFor(java.lang.String categoryID,
                            org.apache.log4j.Priority priority)

isEnabledFor

protected boolean isEnabledFor(java.lang.Class catClass,
                               org.apache.log4j.Priority priority)

isDebugEnabled

public static boolean isDebugEnabled(java.lang.Object caller)

isDebugEnabled

public static boolean isDebugEnabled(java.lang.Class catClass)

isInfoEnabled

public static boolean isInfoEnabled(java.lang.Object caller)

isInfoEnabled

public static boolean isInfoEnabled(java.lang.Class catClass)

logMessage

protected void logMessage(java.lang.Class catClass,
                          org.apache.log4j.Priority priority,
                          java.lang.String message,
                          java.lang.Throwable throwable)

logMessage

protected void logMessage(java.lang.Object object,
                          org.apache.log4j.Priority priority,
                          java.lang.String message,
                          java.lang.Throwable throwable)

logMessage

protected void logMessage(java.lang.String categoryID,
                          org.apache.log4j.Priority priority,
                          java.lang.String message,
                          java.lang.Throwable throwable)

println

public static void println(java.lang.String msg)
Sends immediately to System.out.println, so you don't have to have that in your code.


debug

public static void debug(java.lang.String categoryID,
                         java.lang.String message)

debug

public static void debug(java.lang.String categoryID,
                         java.lang.String message,
                         java.lang.Throwable throwable)

debug

public static void debug(java.lang.Object caller,
                         java.lang.String message)

debug

public static void debug(java.lang.Object caller,
                         java.lang.String message,
                         java.lang.Throwable throwable)

debug

public static void debug(java.lang.Class catClass,
                         java.lang.String message)

debug

public static void debug(java.lang.Class catClass,
                         java.lang.String message,
                         java.lang.Throwable throwable)

info

public static void info(java.lang.String categoryID,
                        java.lang.String message)

info

public static void info(java.lang.String categoryID,
                        java.lang.String message,
                        java.lang.Throwable throwable)

info

public static void info(java.lang.Object caller,
                        java.lang.String message)

info

public static void info(java.lang.Object caller,
                        java.lang.String message,
                        java.lang.Throwable throwable)

info

public static void info(java.lang.Class catClass,
                        java.lang.String message)

info

public static void info(java.lang.Class catClass,
                        java.lang.String message,
                        java.lang.Throwable throwable)

warn

public static void warn(java.lang.String categoryID,
                        java.lang.String message)

warn

public static void warn(java.lang.String categoryID,
                        java.lang.String message,
                        java.lang.Throwable throwable)

warn

public static void warn(java.lang.Object caller,
                        java.lang.String message)

warn

public static void warn(java.lang.Object caller,
                        java.lang.String message,
                        java.lang.Throwable throwable)

warn

public static void warn(java.lang.Class catClass,
                        java.lang.String message)

warn

public static void warn(java.lang.Class catClass,
                        java.lang.String message,
                        java.lang.Throwable throwable)

error

public static void error(java.lang.String categoryID,
                         java.lang.String message)

error

public static void error(java.lang.String categoryID,
                         java.lang.String message,
                         java.lang.Throwable throwable)

error

public static void error(java.lang.Object caller,
                         java.lang.String message)

error

public static void error(java.lang.Object caller,
                         java.lang.String message,
                         java.lang.Throwable throwable)

error

public static void error(java.lang.Class catClass,
                         java.lang.String message)

error

public static void error(java.lang.Class catClass,
                         java.lang.String message,
                         java.lang.Throwable throwable)

push

public static void push(java.lang.String context)

pop

public static java.lang.String pop()

main

public static void main(java.lang.String[] args)


Copyright 2001-2013 DYNAMIDE.COM. All Rights Reserved.