com.ibm.sensorevent.agent.loggers
Class BaseLogger
java.lang.Object
com.ibm.sensorevent.agent.loggers.BaseLogger
- All Implemented Interfaces:
- Logger
- Direct Known Subclasses:
- AgentLogger
public class BaseLogger
- extends java.lang.Object
- implements Logger
Method Summary |
protected void |
_init()
|
void |
exception(long type,
java.lang.Object object,
java.lang.String method,
java.lang.Throwable throwable)
Implementation of methods from Logger interface * |
java.lang.String |
formatMessage(java.lang.String key)
Fetch the resource specified by key from a the resource bundle |
java.lang.String |
formatMessage(java.lang.String key,
java.lang.Object parameter)
Fetch the resource specified by key from a the resource bundle and substitute the value of the
speoified parameter (as returned by toString()) into the resource where indicated |
java.lang.String |
formatMessage(java.lang.String key,
java.lang.Object[] parameters)
Fetch the resource specified by key from a the resource bundle and substitute the values of the
speoified parameters (as returned by toString()) into the resource where indicated |
java.lang.String |
formatMessage(java.lang.String key,
java.lang.Object parameter1,
java.lang.Object parameter2)
Fetch the resource specified by key from a the resource bundle and substitute the values of the
speoified parameters (as returned by toString()) into the resource where indicated |
boolean |
isMessageEnabled()
|
boolean |
isTraceEnabled()
|
void |
message(long type,
java.lang.Object object,
java.lang.String method,
java.lang.String key)
|
void |
message(long type,
java.lang.Object object,
java.lang.String method,
java.lang.String key,
java.lang.Object parameter)
|
void |
message(long type,
java.lang.Object object,
java.lang.String method,
java.lang.String key,
java.lang.Object[] parameters)
|
void |
message(long type,
java.lang.Object object,
java.lang.String method,
java.lang.String key,
java.lang.Object parameter1,
java.lang.Object parameter2)
|
static Logger |
singleton()
|
void |
textMessage(long type,
java.lang.Object object,
java.lang.String method,
java.lang.String message)
|
void |
trace(long type,
java.lang.Object object,
java.lang.String method,
java.lang.String message)
|
void |
traceEntry(java.lang.Object object,
java.lang.String method)
|
void |
traceException(long type,
java.lang.Object object,
java.lang.String method,
java.lang.Throwable throwable)
|
void |
traceExit(java.lang.Object object,
java.lang.String method)
|
void |
tracePerfEvent(java.lang.Object classobj,
java.lang.String methodname,
java.lang.String xml,
java.lang.String message)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- See Also:
- Constant Field Values
mySingleton
protected static Logger mySingleton
myResourceBundle
protected java.util.ResourceBundle myResourceBundle
myWasMessageLogger
protected RASMessageLogger myWasMessageLogger
myWasTraceLogger
protected RASTraceLogger myWasTraceLogger
BaseLogger
protected BaseLogger()
_init
protected void _init()
singleton
public static Logger singleton()
tracePerfEvent
public void tracePerfEvent(java.lang.Object classobj,
java.lang.String methodname,
java.lang.String xml,
java.lang.String message)
- Specified by:
tracePerfEvent
in interface Logger
exception
public void exception(long type,
java.lang.Object object,
java.lang.String method,
java.lang.Throwable throwable)
- Implementation of methods from Logger interface *
- Specified by:
exception
in interface Logger
message
public void message(long type,
java.lang.Object object,
java.lang.String method,
java.lang.String key)
- Specified by:
message
in interface Logger
message
public void message(long type,
java.lang.Object object,
java.lang.String method,
java.lang.String key,
java.lang.Object parameter)
- Specified by:
message
in interface Logger
message
public void message(long type,
java.lang.Object object,
java.lang.String method,
java.lang.String key,
java.lang.Object parameter1,
java.lang.Object parameter2)
- Specified by:
message
in interface Logger
message
public void message(long type,
java.lang.Object object,
java.lang.String method,
java.lang.String key,
java.lang.Object[] parameters)
- Specified by:
message
in interface Logger
textMessage
public void textMessage(long type,
java.lang.Object object,
java.lang.String method,
java.lang.String message)
- Specified by:
textMessage
in interface Logger
trace
public void trace(long type,
java.lang.Object object,
java.lang.String method,
java.lang.String message)
- Specified by:
trace
in interface Logger
traceEntry
public void traceEntry(java.lang.Object object,
java.lang.String method)
- Specified by:
traceEntry
in interface Logger
traceExit
public void traceExit(java.lang.Object object,
java.lang.String method)
- Specified by:
traceExit
in interface Logger
traceException
public void traceException(long type,
java.lang.Object object,
java.lang.String method,
java.lang.Throwable throwable)
- Specified by:
traceException
in interface Logger
formatMessage
public java.lang.String formatMessage(java.lang.String key)
- Fetch the resource specified by key from a the resource bundle
- Specified by:
formatMessage
in interface Logger
- Parameters:
key
- string name of resource to use within bundle
- Returns:
- String resource from bundle
formatMessage
public java.lang.String formatMessage(java.lang.String key,
java.lang.Object parameter)
- Fetch the resource specified by key from a the resource bundle and substitute the value of the
speoified parameter (as returned by toString()) into the resource where indicated
- Specified by:
formatMessage
in interface Logger
- Parameters:
key
- string name of resource to use within bundleparameter
- object who's value will be substituted at indicated location within key
resource string
- Returns:
- String formatted message
formatMessage
public java.lang.String formatMessage(java.lang.String key,
java.lang.Object parameter1,
java.lang.Object parameter2)
- Fetch the resource specified by key from a the resource bundle and substitute the values of the
speoified parameters (as returned by toString()) into the resource where indicated
- Specified by:
formatMessage
in interface Logger
- Parameters:
key
- string name of resource to use within bundleparameter1
- object who's value will be substituted at first indicated location within key
resource stringparameter2
- object who's value will be substituted at second indicated location within key
resource string
- Returns:
- String formatted message
formatMessage
public java.lang.String formatMessage(java.lang.String key,
java.lang.Object[] parameters)
- Fetch the resource specified by key from a the resource bundle and substitute the values of the
speoified parameters (as returned by toString()) into the resource where indicated
- Specified by:
formatMessage
in interface Logger
- Parameters:
key
- string name of resource to use within bundleparameters
- object array who's elements values will be substituted at each indicated location
within key resource string
- Returns:
- String formatted message
isTraceEnabled
public boolean isTraceEnabled()
- Specified by:
isTraceEnabled
in interface Logger
isMessageEnabled
public boolean isMessageEnabled()
- Specified by:
isMessageEnabled
in interface Logger
Copyright © 2005 - 2009 IBM Corp. All Rights Reserved.