|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.plugin.idipwsync.IDIPasswordStoreTrace
public class IDIPasswordStoreTrace
This class Provides a general purpose logging facility. It is currently a wrapper class for much of the functionality provided by CSA's UtTrace facility. The default logging destination is System.out. Trace data may be redirected to a file, or to an instance of java.io.OutputStream supplied by the application. In addition to the default log, any number of named logs may be defined. All trace data is written to the default log, but named logs provide a way to isolate trace data for a particular function in a separate log. The logging destination for each named log is controlled separately from the default log.
There are four categories of trace data. Each category may be active or inactive independently of the others.
Information - Used to provide status information for programmers.
Diagnostic - Used to log object state information and flow of control through the code.
Warning - Used to log recoverable errors. This category supports logging of stack traces.
Error - Used to log unrecoverable errors. This category supports logging of stack traces.
Field Summary | |
---|---|
static String |
DEFAULT_LOG_FILENAME
|
static int |
DIAGNOSTIC
|
static String |
DIAGTRACE
|
static int |
ERROR
|
static String |
ERRTRACE
|
static int |
INFORMATION
|
static String |
INFOTRACE
|
static int |
WARNING
|
static String |
WARNTRACE
|
Constructor Summary | |
---|---|
IDIPasswordStoreTrace()
|
Method Summary | |
---|---|
static void |
AssertInitialized(String logFile,
int debug)
|
static boolean |
isDiagnosticTraceEnabled()
Indicates whether diagnostic messages are logged. |
static boolean |
isErrorTraceEnabled()
Indicates whether error messages are logged. |
static boolean |
isInformationTraceEnabled()
Indicates whether information messages are logged. |
static boolean |
isInitialized()
|
static boolean |
isWarningTraceEnabled()
Indicates whether warning messages are logged. |
static void |
logDiagnostic(String message)
Logs a diagnostic message to the default log. |
static void |
logDiagnostic(String message,
Object logfile)
Logs a diagnostic message to the specified log. |
static void |
logError(String message)
Logs an error message to the default log. |
static void |
logError(String message,
Object logfile)
Logs an error message to the specified log. |
static void |
logError(String message,
Throwable excep)
Logs an error message and an exception to the default log as an error. |
static void |
logError(String message,
Throwable excep,
Object logfile)
Logs an error message and an exception to the specified log as an error. |
static void |
logError(Throwable excep)
Logs an error message to the default log. |
static void |
logError(Throwable excep,
Object logfile)
Logs an exception to the specified log as an error. |
static void |
logInformation(String message)
Logs an information message to the default log. |
static void |
logInformation(String message,
Object logfile)
Logs an information message to the specified log. |
static void |
logWarning(String message)
Logs a warning message to the default log. |
static void |
logWarning(String message,
Object logfile)
Logs a warning message to the specified log. |
static void |
logWarning(String message,
Throwable excep)
Logs a warning message and an exception to the default log as a warning. |
static void |
logWarning(String message,
Throwable excep,
Object logfile)
Logs a warning message and an exception to the specified log as a warning. |
static void |
logWarning(Throwable excep)
Logs an exception to the default log as a warning. |
static void |
logWarning(Throwable excep,
Object logfile)
Logs an exception to the specified log as a warning. |
static void |
setDiagnosticTraceEnabled(boolean b)
if b is true, Diagnostic tracing is enabled |
static void |
setErrorTraceEnabled(boolean b)
if b is true, Error tracing is enabled |
static void |
setInformationTraceEnabled(boolean b)
if b is true, Information tracing is enabled |
static void |
setInitialized(boolean b)
|
static void |
setLogFileName(String filename)
Sets filename for default log file. |
static void |
setWarningTraceEnabled(boolean b)
if b is true, Warning tracing is enabled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DIAGTRACE
public static final String INFOTRACE
public static final String ERRTRACE
public static final String WARNTRACE
public static final String DEFAULT_LOG_FILENAME
public static final int WARNING
public static final int ERROR
public static final int DIAGNOSTIC
public static final int INFORMATION
Constructor Detail |
---|
public IDIPasswordStoreTrace()
Method Detail |
---|
public static void AssertInitialized(String logFile, int debug) throws IOException
IOException
public static boolean isDiagnosticTraceEnabled()
public static boolean isErrorTraceEnabled()
public static boolean isInformationTraceEnabled()
public static boolean isInitialized()
public static boolean isWarningTraceEnabled()
public static void logDiagnostic(String message)
message
- The message string to log.public static void logDiagnostic(String message, Object logfile)
message
- The message string to log.logfile
- The name of the log to which the message should be logged.public static void logError(String message)
message
- The message string to log.public static void logError(String message, Object logfile)
message
- The message string to log.logfile
- The name of the log to which the message should be logged.public static void logError(String message, Throwable excep)
message
- The message string to log.excep
- java.lang.Throwable to log.public static void logError(String message, Throwable excep, Object logfile)
message
- The message string to log.excep
- java.lang.Throwable to log.logfile
- The name of the log to which the message should be logged.public static void logError(Throwable excep)
excep
- java.lang.Throwable to log.public static void logError(Throwable excep, Object logfile)
excep
- java.lang.Throwable to log.logfile
- The name of the log to which the message should be logged.public static void logInformation(String message)
message
- The message string to log.public static void logInformation(String message, Object logfile)
message
- The message string to log.logfile
- The name of the log to which the message should be logged.public static void logWarning(String message)
message
- The message string to log.public static void logWarning(String message, Object logfile)
message
- The message string to log.logfile
- The name of the log to which the message should be logged.public static void logWarning(String message, Throwable excep)
message
- The message string to log.excep
- java.lang.Throwable to log.public static void logWarning(String message, Throwable excep, Object logfile)
message
- The message string to log.excep
- java.lang.Throwable to log.logfile
- The name of the log to which the message should be logged.public static void logWarning(Throwable excep)
excep
- java.lang.Throwable to log.public static void logWarning(Throwable excep, Object logfile)
excep
- java.lang.Throwable to log.logfile
- The name of the log to which the message should be logged.public static void setDiagnosticTraceEnabled(boolean b)
public static void setErrorTraceEnabled(boolean b)
public static void setInformationTraceEnabled(boolean b)
public static void setInitialized(boolean b)
public static void setLogFileName(String filename) throws IOException
IOException
public static void setWarningTraceEnabled(boolean b)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |