|
Oracle® Collaboration Suite Workspaces API Reference 10g (10.1.1.0.2) Part No. B16233-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
The commom logger interface for Logger. Each class in CW Application needs to obtain this instance to do the logging, such as in oracle.workspaces.util.oid.OIDUtil
private static CWLogger ms_logger
= CWLoggerFactory.createLogger(OIDUtil.class.getName());
After that, you can use it anywhere in the same class as,
ms_logger.debug("debug information");
ms_logger.debug("Exception", new Exception());
| Method Summary | |
void |
assertTrue(boolean bCond, java.lang.String szMsg)Will log assertion if condition fails and logging level is "debug", "info", "warn", or "assert" The exact function will depend on the implementation |
void |
debug(java.lang.Object objMsg)Will only log in "debug" level The exact function will depend on the implementation |
void |
debug(java.lang.Object objMsg, java.lang.Throwable t)Will only log in "debug" level The exact function will depend on the implementation |
void |
error(java.lang.Object objMsg)Will only log in "info", "debug", "warn", or "error" level The exact function will depend on the implementation |
void |
error(java.lang.Object objMsg, java.lang.Throwable t)Will only log in "info", "debug", "warn", or "error" level The exact function will depend on the implementation |
void |
fatal(java.lang.Object objMsg)Will only log in "info", "debug", "warn", "error", or "fatal" level The exact function will depend on the implementation |
void |
fatal(java.lang.Object message, java.lang.Throwable t)Will only log in "info", "debug", "warn", "error", or "fatal" level The exact function will depend on the implementation |
void |
info(java.lang.Object objMsg)Will only log in "info", or "debug" level The exact function will depend on the implementation |
void |
init(java.lang.String szClassName)init will cause the logger to boot strap, like read from a global property file or system property. |
boolean |
isDebugEnabled()Will return true The exact function will depend on the implementation |
boolean |
isInfoEnabled()Will return true if the level is "info", "warn", "error", or "fatal" The exact function will depend on the implementation |
void |
warn(java.lang.Object objMsg)Will only log in "info", "debug", or "warn" level The exact function will depend on the implementation |
void |
warn(java.lang.Object objMsg, java.lang.Throwable t)Will only log in "info", "debug", or "warn" level The exact function will depend on the implementation |
| Method Detail |
public void assertTrue(boolean bCond,
java.lang.String szMsg)
bCond - condition to checkszMsg - message to logpublic void debug(java.lang.Object objMsg)
objMsg - object to output to log
public void debug(java.lang.Object objMsg,
java.lang.Throwable t)
objMsg - object to output to logt - exception to logpublic void error(java.lang.Object objMsg)
objMsg - object to output to log
public void error(java.lang.Object objMsg,
java.lang.Throwable t)
objMsg - object to output to logt - exception to logpublic void fatal(java.lang.Object objMsg)
objMsg - object to output to log
public void fatal(java.lang.Object message,
java.lang.Throwable t)
message - object to output to logt - exception to logpublic void info(java.lang.Object objMsg)
objMsg - object to output to logpublic void init(java.lang.String szClassName)
szClassName - The caller class namepublic boolean isDebugEnabled()
public boolean isInfoEnabled()
public void warn(java.lang.Object objMsg)
objMsg - object to output to log
public void warn(java.lang.Object objMsg,
java.lang.Throwable t)
objMsg - object to output to logt - exception to log
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||