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

B25479-01


oracle.workspaces.util.log.impl
Class SimpleCwLogger

java.lang.Object
  extended byoracle.workspaces.util.log.impl.SimpleCwLogger

All Implemented Interfaces:
CwLogger

public class SimpleCwLogger
extends java.lang.Object
implements CwLogger
Since:
release specific (what release of product did this appear in)

Constructor Summary
SimpleCwLogger()

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"
void debug(java.lang.Object objMsg)
Will only log in "debug" level
void debug(java.lang.Object objMsg, java.lang.Throwable t)
Will only log in "debug" level
void error(java.lang.Object objMsg)
Will only log in "info", "debug", "warn", or "error" level
void error(java.lang.Object objMsg, java.lang.Throwable t)
Will only log in "info", "debug", "warn", or "error" level
void fatal(java.lang.Object objMsg)
Will only log in "info", "debug", "warn", "error", or "fatal" level
void fatal(java.lang.Object objMsg, java.lang.Throwable t)
Will only log in "info", "debug", "warn", "error", or "fatal" level
void info(java.lang.Object objMsg)
Will only log in "info", or "debug" level
void init(java.lang.String callerID)
initialize setting for one particular implemenation of CwLogger It should only be called once
boolean isDebugEnabled()
Will return true.
boolean isInfoEnabled()
Will return true if the level is "info", "warn", "error", or "fatal"
void warn(java.lang.Object objMsg)
Will only log in "info", "debug", or "warn" level
void warn(java.lang.Object objMsg, java.lang.Throwable t)
Will only log in "info", "debug", or "warn" level

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

SimpleCwLogger

public SimpleCwLogger()

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"
Specified by:
assertTrue in interface CwLogger
Parameters:
bCond - condition to check
szMsg - message to log

debug

public void debug(java.lang.Object objMsg)
Will only log in "debug" level
Specified by:
debug in interface CwLogger
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
Specified by:
debug in interface CwLogger
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
Specified by:
error in interface CwLogger
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
Specified by:
error in interface CwLogger
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
Specified by:
fatal in interface CwLogger
Parameters:
objMsg - object to output to log

fatal

public void fatal(java.lang.Object objMsg,
                  java.lang.Throwable t)
Will only log in "info", "debug", "warn", "error", or "fatal" level
Specified by:
fatal in interface CwLogger
Parameters:
objMsg - 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
Specified by:
info in interface CwLogger
Parameters:
objMsg - object to output to log

init

public void init(java.lang.String callerID)
initialize setting for one particular implemenation of CwLogger It should only be called once
Specified by:
init in interface CwLogger
Parameters:
callerID - The caller class name

isDebugEnabled

public boolean isDebugEnabled()
Will return true.
Specified by:
isDebugEnabled in interface CwLogger

isInfoEnabled

public boolean isInfoEnabled()
Will return true if the level is "info", "warn", "error", or "fatal"
Specified by:
isInfoEnabled in interface CwLogger

warn

public void warn(java.lang.Object objMsg)
Will only log in "info", "debug", or "warn" level
Specified by:
warn in interface CwLogger
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
Specified by:
warn in interface CwLogger
Parameters:
objMsg - object to output to log
t - exception to log

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