|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.commons.log.Log
public class Log
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 |
---|
public Log()
Method Detail |
---|
public static java.lang.String getDeveloperName()
@Deprecated public static LogMgr load(java.lang.String loggerName, java.lang.Class<?> loggerClass)
public static LogMgr load(java.lang.String loggerName)
This function is supposed to be called in static constructors.
loggerName
- the name of the logger
public static LogMgr load(java.lang.String loggerName, java.lang.String description)
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.
loggerName
- the name of the loggerdescription
- the group description
public static LogMgr loadDev(java.lang.String userName)
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.
loggerName
- the name of the loggerdescription
- the group description
@Deprecated public static LogMgr get(java.lang.Class theClass)
theClass
- the class that is locating the logger
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |