Oracle® Collaboration Suite Workspaces API Reference
10g Release 1 (10.1.2)

B25479-01


oracle.workspaces.util.log
Interface CwLogger

All Known Implementing Classes:
SimpleCwLogger

public interface CwLogger

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

assertTrue

public 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
Parameters:
bCond - condition to check
szMsg - message to log

debug

public void debug(java.lang.Object objMsg)
Will only log in "debug" level The exact function will depend on the implementation
Parameters:
objMsg - object to output to log

debug

public void debug(java.lang.Object objMsg,
                  java.lang.Throwable t)
Will only log in "debug" level The exact function will depend on the implementation
Parameters:
objMsg - object to output to log
t - exception to log

error

public void error(java.lang.Object objMsg)
Will only log in "info", "debug", "warn", or "error" level The exact function will depend on the implementation
Parameters:
objMsg - object to output to log

error

public 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
Parameters:
objMsg - object to output to log
t - exception to log

fatal

public 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
Parameters:
objMsg - object to output to log

fatal

public 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
Parameters:
message - object to output to log
t - exception to log

info

public void info(java.lang.Object objMsg)
Will only log in "info", or "debug" level The exact function will depend on the implementation
Parameters:
objMsg - object to output to log

init

public void init(java.lang.String szClassName)
init will cause the logger to boot strap, like read from a global property file or system property.
Parameters:
szClassName - The caller class name

isDebugEnabled

public boolean isDebugEnabled()
Will return true The exact function will depend on the implementation

isInfoEnabled

public boolean isInfoEnabled()
Will return true if the level is "info", "warn", "error", or "fatal" The exact function will depend on the implementation

warn

public void warn(java.lang.Object objMsg)
Will only log in "info", "debug", or "warn" level The exact function will depend on the implementation
Parameters:
objMsg - object to output to log

warn

public 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
Parameters:
objMsg - object to output to log
t - exception to log

Copyright © 2001, 2005, Oracle. All rights reserved.