|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is an interface for managing configured logs.
Following is an example of the configuration entries needed to configure
a file log. Given a log named MyLogger:
To instantiate a configured log, call getLog( "logname" ), a static method of com.sssw.fw.log.EboFactory.
com.sssw.fw.api.EbiLog myLog = EboFactory.getLog( "MyLogger" ); myLog.trace( "some textual information" );
EboLogFactory
Field Summary | |
static int |
CRITICAL_ERROR_LEVEL
The system encountered a critical error at this logging level, which affects the accuracy, integrity, reliability, or capability of the system. |
static int |
DEACTIVATE_LEVEL
Turns the log off, no messages are logged |
static int |
ERROR_LEVEL
The system encountered an unexpected error at this logging level, which probably means the code intercepted an error it cannot handle. |
static int |
INFO_LEVEL
Informational logging level. |
static int |
TRACE_LEVEL
Most detailed logging level. |
static int |
WARNING_LEVEL
The system encountered an expected error situation. |
Method Summary | |
void |
audit(String logString)
Writes the log string to the log at the audit log level. |
void |
criticalError(String logString)
Writes the log string to the log at the criticalError log level. |
void |
criticalError(Throwable _e)
Writes the exception to the log at the criticalError log level. |
void |
error(String logString)
Writes the exception to the log at the error log level. |
void |
error(Throwable _e)
Writes the exception to the log at the error log level. |
String |
getLogFieldSeparator()
Returns the log separator string |
int |
getLoggingLevel()
Returns the logging level of the log |
String |
getName()
Returns the name of the log |
void |
info(String logString)
Writes the exception to the log at the information log level. |
boolean |
isCritical()
Returns true if the current log level is EbiLog.CRITICAL_LEVEL |
boolean |
isError()
Returns true if the current log level is EbiLog.ERROR_LEVEL |
boolean |
isInfo()
Returns true if the current log level is EbiLog.INFO_LEVEL |
boolean |
isLevel(int level)
Returns true if the current log level is set to the level passed |
boolean |
isTrace()
Returns true if the current log level is EbiLog.TRACE_LEVEL |
boolean |
isWarning()
Returns true if the current log level is EbiLog.WARNING_LEVEL |
void |
logStackTrace(String info,
Throwable th)
Logs a Throwable's stack trace. |
void |
logStackTrace(Throwable th)
Logs a Throwable's stack trace. |
void |
logString(String logString,
int errorLevel)
Writes the log string to the log. |
void |
setLoggingLevel(int newLoggingLevel)
Sets the current logs logging level. |
void |
trace(String logString)
Writes the exception to the log at the trace log level. |
void |
warning(String logString)
Writes the exception to the log at the warning log level. |
Field Detail |
public static final int DEACTIVATE_LEVEL
public static final int CRITICAL_ERROR_LEVEL
public static final int ERROR_LEVEL
public static final int WARNING_LEVEL
public static final int INFO_LEVEL
public static final int TRACE_LEVEL
Method Detail |
public boolean isLevel(int level)
log
- level to be used for comparisonpublic boolean isCritical()
EbiLog.CRITICAL_LEVEL
EbiLog.TRACE_LEVEL
.EbiLog.CRITICAL_LEVEL
public boolean isError()
EbiLog.ERROR_LEVEL
EbiLog.ERROR_LEVEL
.EbiLog.ERROR_LEVEL
public boolean isWarning()
EbiLog.WARNING_LEVEL
EbiLog.WARNING_LEVEL
.EbiLog.WARNING_LEVEL
public boolean isInfo()
EbiLog.INFO_LEVEL
EbiLog.INFO_LEVEL
.EbiLog.INFO_LEVEL
public boolean isTrace()
EbiLog.TRACE_LEVEL
boolean
indicator set to true if level is
EbiLog.TRACE_LEVEL
.EbiLog.TRACE_LEVEL
public void logString(String logString, int errorLevel)
A
- String
containing log information.An
- int
indication of logging level.public void audit(String logString)
A
- String
containing log information.public void criticalError(String logString)
A
- String
containing log information.CRITICAL_ERROR_LEVEL
public void criticalError(Throwable _e)
A
- Throwable
containing log information.CRITICAL_ERROR_LEVEL
public void error(String logString)
A
- String
containing log information.ERROR_LEVEL
public void error(Throwable _e)
A
- Throwable
containing log information.ERROR_LEVEL
public void warning(String logString)
A
- String
containing log information.WARNING_LEVEL
public void setLoggingLevel(int newLoggingLevel) throws com.sssw.fw.api.EboDataException
An
- int
indicating desired logging levelpublic void info(String logString)
A
- String
containing log information.INFO_LEVEL
public void trace(String logString)
A
- String
containing log information.TRACE_LEVEL
public String getName()
String
containing log name.public int getLoggingLevel()
int
containing logging level.public String getLogFieldSeparator()
String
containing log separator.public void logStackTrace(String info, Throwable th)
info
- A String with user info related to the exceptionth
- The Throwable in questionpublic void logStackTrace(Throwable th)
th
- The Throwable in question
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |