com.ibm.websphere.wim.ras
Class WIMLogger

java.lang.Object
  extended by com.ibm.websphere.wim.ras.WIMLogger

public class WIMLogger
extends java.lang.Object

This class provides static methods to retrieve message and trace logger. For convenience, this class sets the default resource bundle for message loggers. This class should be used on vmm server side. This class can also be used on the vmm client side, but if the client is running in non-WAS environment then the log properties file must be provided for the messaging and tracing to work.

This class also defines static signature strings that can be used during method entry and exit trace calls


Field Summary
static java.lang.String API_PREFIX
          Signature string for vmm API
static java.lang.String ENTRY
          Signature string for method Entry
static java.lang.String EXIT
          Signature string for method Exit
static java.lang.String MESSAGE_RB
          Default message resource bundle for vmm
static java.lang.String SPI_PREFIX
          Signature string for vmm SPI
 
Constructor Summary
WIMLogger()
           
 
Method Summary
static java.util.logging.Logger getMessageLogger(java.lang.String name)
          Return the message logger for the vmm.
static java.util.logging.Logger getTraceLogger(java.lang.String name)
          Return the trace logger for the specified package.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MESSAGE_RB

public static final java.lang.String MESSAGE_RB
Default message resource bundle for vmm

See Also:
Constant Field Values

ENTRY

public static final java.lang.String ENTRY
Signature string for method Entry

See Also:
Constant Field Values

EXIT

public static final java.lang.String EXIT
Signature string for method Exit

See Also:
Constant Field Values

API_PREFIX

public static final java.lang.String API_PREFIX
Signature string for vmm API

See Also:
Constant Field Values

SPI_PREFIX

public static final java.lang.String SPI_PREFIX
Signature string for vmm SPI

See Also:
Constant Field Values
Constructor Detail

WIMLogger

public WIMLogger()
Method Detail

getTraceLogger

public static java.util.logging.Logger getTraceLogger(java.lang.String name)
Return the trace logger for the specified package.

Parameters:
name - A name for the trace logger. This should be a dot-separated name and should normally be based on the package names, such as com.ibm.webshere.wim, com.ibm.ws.wim.adapter, com.ibm.wsspi.wim
See Also:
Logger
Return:
a trace logger

getMessageLogger

public static java.util.logging.Logger getMessageLogger(java.lang.String name)
Return the message logger for the vmm. The vmm message resource bundle is set for this logger to use.

Parameters:
name - A name for the message logger. This should be a dot-separated name and should normally be based on the package names, such as com.ibm.webshere.wim, com.ibm.ws.wim.adapter, com.ibm.wsspi.wim
See Also:
Logger
Return:
a message logger