com.ibm.commons.log
Class Log

java.lang.Object
  extended by com.ibm.commons.log.Log

public class Log
extends java.lang.Object

Base class for all loggers.

Used to define the logging groups. It is a very good practice to define all the groups in the same class so they get initialized when this class is loaded. This ensures that the Java registry is loaded and then can be queried by runtime code.


Constructor Summary
Log()
           
 
Method Summary
static LogMgr get(java.lang.Class theClass)
          Deprecated.  
static java.lang.String getDeveloperName()
          Get the name of the current developer.
static LogMgr load(java.lang.String loggerName)
          Define a new log group.
static LogMgr load(java.lang.String loggerName, java.lang.Class<?> loggerClass)
          Deprecated. 
static LogMgr load(java.lang.String loggerName, java.lang.String description)
          Define a new log group.
static LogMgr loadDev(java.lang.String userName)
          Define a new log group.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log

public Log()
Method Detail

getDeveloperName

public static java.lang.String getDeveloperName()
Get the name of the current developer. This is used to enable developer specific trace.

Returns:

load

@Deprecated
public static LogMgr load(java.lang.String loggerName,
                                     java.lang.Class<?> loggerClass)
Deprecated. 


load

public static LogMgr load(java.lang.String loggerName)
Define a new log group.

This function is supposed to be called in static constructors.

Parameters:
loggerName - the name of the logger
Returns:

load

public static LogMgr load(java.lang.String loggerName,
                          java.lang.String description)
Define a new log group.

This function is supposed to be called in static constructors. The description is an extension to the standard loggers that can be queried by runtime tools.

Parameters:
loggerName - the name of the logger
description - the group description
Returns:

loadDev

public static LogMgr loadDev(java.lang.String userName)
Define a new log group.

This function is supposed to be called in static constructors. The description is an extension to the standard loggers that can be queried by runtime tools.

Parameters:
loggerName - the name of the logger
description - the group description
Returns:

get

@Deprecated
public static LogMgr get(java.lang.Class theClass)
Deprecated. 

Load a logger for the specified class. The package is determined from the class and the package name is used to locate the correct LogMgr.

Parameters:
theClass - the class that is locating the logger
Returns:
LogMgr the logger to use