|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.itim.logging.SystemLog
Class that provides an interface for logging any type of message. The concept of categories is made available for potential filtering of messages and/or method of physical storage.
Field Summary | |
static int |
DEBUG_INFO
Debug messages are fine-grained informational events that are most useful to debug an application. |
static java.lang.String |
ENROLE_BASE_CATEGORY
Base category name also used as default category name. |
static java.lang.String |
ENROLE_SECURITY_CATEGORY
Base category name also used as default category name. |
static int |
FATAL_ERROR
Fatal messages are messages that indicate very severe error events that will presumably lead the application to abort. |
static int |
INFO
Information messages highlight the progress of the application at a coarse-grained level. |
static int |
NON_FATAL_ERROR
Error messages are messages that indicate error events that might still allow the application to continue running. |
static int |
WARNING
Warning messages are informational messages that indicate potentially harmful situations. |
Method Summary | |
static SystemLog |
getInstance()
Returns an instance of SystemLog, creating a new one if necessary. |
int |
getPriorityLevel(java.lang.Object src)
Accessor method for a category's priority level. |
int |
getPriorityLevel(java.lang.String category)
Accessor method for a category's priority level. |
boolean |
getTraceExceptions()
Get accessor for traceExceptions. |
void |
logDebug(java.lang.Object src,
java.lang.Object msg)
Log a debug message. |
void |
logDebug(java.lang.Object src,
java.lang.Object msg,
java.lang.Throwable e)
Log a debug message. |
void |
logDebug(java.lang.String category,
java.lang.Object msg)
Log a debug message. |
void |
logDebug(java.lang.String category,
java.lang.Object msg,
java.lang.Throwable e)
Log a debug message. |
void |
logError(java.lang.Object src,
java.lang.Object msg)
Log an error message. |
void |
logError(java.lang.Object src,
java.lang.Object msg,
java.lang.Throwable e)
Log an error message. |
void |
logError(java.lang.String category,
java.lang.Object msg)
Log an error message. |
void |
logError(java.lang.String category,
java.lang.Object msg,
java.lang.Throwable e)
Log an error message. |
void |
logFatal(java.lang.Object src,
java.lang.Object msg)
Log a fatal message. |
void |
logFatal(java.lang.Object src,
java.lang.Object msg,
java.lang.Throwable e)
Log a fatal message. |
void |
logFatal(java.lang.String category,
java.lang.Object msg)
Log a fatal message. |
void |
logFatal(java.lang.String category,
java.lang.Object msg,
java.lang.Throwable e)
Log a fatal message. |
void |
logInformation(java.lang.Object src,
java.lang.Object msg)
Log an information message. |
void |
logInformation(java.lang.Object src,
java.lang.Object msg,
java.lang.Throwable e)
Log an information message. |
void |
logInformation(java.lang.String category,
java.lang.Object msg)
Log an information message. |
void |
logInformation(java.lang.String category,
java.lang.Object msg,
java.lang.Throwable e)
Log an information message. |
void |
logWarning(java.lang.Object src,
java.lang.Object msg)
Log a warning message. |
void |
logWarning(java.lang.Object src,
java.lang.Object msg,
java.lang.Throwable e)
Log a warning message. |
void |
logWarning(java.lang.String category,
java.lang.Object msg)
Log a warning message. |
void |
logWarning(java.lang.String category,
java.lang.Object msg,
java.lang.Throwable e)
Log a warning message. |
void |
setPriorityLevel(java.lang.Object src,
int priority)
Mutator method for a category's priority level. |
void |
setPriorityLevel(java.lang.String category,
int priority)
Mutator method for a category's priority level. |
void |
setTraceExceptions(boolean traceExceptions)
Set accessor for traceExceptions. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String ENROLE_BASE_CATEGORY
public static final java.lang.String ENROLE_SECURITY_CATEGORY
public static final int FATAL_ERROR
public static final int NON_FATAL_ERROR
public static final int WARNING
public static final int INFO
public static final int DEBUG_INFO
Method Detail |
public static SystemLog getInstance()
public void logDebug(java.lang.Object src, java.lang.Object msg)
src
- An object reference whose class name is used as a category name.msg
- String containing message to be logged.public void logDebug(java.lang.Object src, java.lang.Object msg, java.lang.Throwable e)
src
- An object reference whose class name is used as a category name.msg
- String containing message to be logged.e
- Optional throwable object reference. If this parameter
is not null then a stack trace is written to the log.public void logDebug(java.lang.String category, java.lang.Object msg)
category
- A dot separated category name.msg
- String containing message to be logged.public void logDebug(java.lang.String category, java.lang.Object msg, java.lang.Throwable e)
category
- A dot separated category name.msg
- String containing message to be logged.e
- Optional throwable object reference. If this parameter
is not null then a stack trace is written to the log.public void logInformation(java.lang.Object src, java.lang.Object msg)
src
- An object reference whose class name is used as a category name.msg
- String containing message to be logged.public void logInformation(java.lang.Object src, java.lang.Object msg, java.lang.Throwable e)
src
- An object reference whose class name is used as a category name.msg
- String containing message to be logged.e
- Optional throwable object reference. If this parameter
is not null then a stack trace is written to the log.public void logInformation(java.lang.String category, java.lang.Object msg)
category
- A dot separated category name.msg
- String containing message to be logged.public void logInformation(java.lang.String category, java.lang.Object msg, java.lang.Throwable e)
category
- A dot separated category name.msg
- String containing message to be logged.e
- Optional throwable object reference. If this parameter
is not null then a stack trace is written to the log.public void logWarning(java.lang.Object src, java.lang.Object msg)
src
- An object reference whose class name is used as a category name.msg
- String containing message to be logged.public void logWarning(java.lang.Object src, java.lang.Object msg, java.lang.Throwable e)
src
- An object reference whose class name is used as a category name.msg
- String containing message to be logged.e
- Optional throwable object reference. If this parameter
is not null then a stack trace is written to the log.public void logWarning(java.lang.String category, java.lang.Object msg)
category
- A dot separated category name.msg
- String containing message to be logged.public void logWarning(java.lang.String category, java.lang.Object msg, java.lang.Throwable e)
category
- A dot separated category name.msg
- String containing message to be logged.e
- Optional throwable object reference. If this parameter
is not null then a stack trace is written to the log.public void logError(java.lang.Object src, java.lang.Object msg)
src
- An object reference whose class name is used as a category name.msg
- String containing message to be logged.public void logError(java.lang.Object src, java.lang.Object msg, java.lang.Throwable e)
src
- An object reference whose class name is used as a category name.msg
- String containing message to be logged.e
- Optional throwable object reference. If this parameter
is not null then a stack trace is written to the log.public void logError(java.lang.String category, java.lang.Object msg)
category
- A dot separated category name.msg
- String containing message to be logged.public void logError(java.lang.String category, java.lang.Object msg, java.lang.Throwable e)
category
- A dot separated category name.msg
- String containing message to be logged.e
- Optional throwable object reference. If this parameter
is not null then a stack trace is written to the log.public void logFatal(java.lang.Object src, java.lang.Object msg)
src
- An object reference whose class name is used as a category name.msg
- String containing message to be logged.public void logFatal(java.lang.Object src, java.lang.Object msg, java.lang.Throwable e)
src
- An object reference whose class name is used as a category name.msg
- String containing message to be logged.e
- Optional throwable object reference. If this parameter
is not null then a stack trace is written to the log.public void logFatal(java.lang.String category, java.lang.Object msg)
category
- A dot separated category name.msg
- String containing message to be logged.public void logFatal(java.lang.String category, java.lang.Object msg, java.lang.Throwable e)
category
- A dot separated category name.msg
- String containing message to be logged.e
- Optional throwable object reference. If this parameter
is not null then a stack trace is written to the log.public int getPriorityLevel(java.lang.Object src)
src
- An object reference whose class name is used as a category name.public int getPriorityLevel(java.lang.String category)
category
- the category for which to retrieve priority.public void setPriorityLevel(java.lang.Object src, int priority)
src
- An object reference whose class name is used as a category name.priority
- the priority level to set the specified category to.public void setPriorityLevel(java.lang.String category, int priority)
category
- the category for which to retrieve priority.priority
- the priority level to set the specified category to.public void setTraceExceptions(boolean traceExceptions)
traceExceptions
- boolean value indicating whether
stack traces should be logged with exceptions.public boolean getTraceExceptions()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |