net.wgen.op.logging
Class LoggingServices

java.lang.Object
  extended bynet.wgen.op.logging.LoggingServices

public class LoggingServices
extends java.lang.Object

Version:
$Id: LoggingServices.html,v 1.2 2007/01/28 04:09:37 paulfeuer Exp $
Author:
Paul Feuer, Wireless Generation, Inc.

Field Summary
private static LoggingServices _self
          The singleton instance of the class.
private  java.util.Map _tagToTimingToLevel
           
static java.lang.String DELIMITER
           
static java.lang.String LOGTAG_ACTION_TIMING
           
static java.lang.String LOGTAG_CX_TIMING
           
static java.lang.String LOGTAG_DB_TIMING
           
static java.lang.String LOGTAG_EJB_TIMING
           
static java.lang.String LOGTAG_OP_TIMING
           
 
Constructor Summary
private LoggingServices()
           
 
Method Summary
static LoggingServices getInstance()
          The singleton accessor.
 org.apache.log4j.Level getLevelForTimingValue(java.lang.String tag, long timing)
           
 void logDelimitedMessage(org.apache.log4j.Logger logger, org.apache.log4j.Level logLevel, java.lang.String tag, java.lang.Object[] messageMembers)
          Log a multi-part message with common delimiter.
 void logTiming(org.apache.log4j.Logger logger, java.lang.String tag, long t1, long t2, TraceKey traceKey, java.lang.String msg, java.lang.Object additionalInfo)
           
 void registerThresholdForLevel(java.lang.String tag, long triggerThreshold, org.apache.log4j.Level level)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGTAG_ACTION_TIMING

public static final java.lang.String LOGTAG_ACTION_TIMING
See Also:
Constant Field Values

LOGTAG_DB_TIMING

public static final java.lang.String LOGTAG_DB_TIMING
See Also:
Constant Field Values

LOGTAG_OP_TIMING

public static final java.lang.String LOGTAG_OP_TIMING
See Also:
Constant Field Values

LOGTAG_CX_TIMING

public static final java.lang.String LOGTAG_CX_TIMING
See Also:
Constant Field Values

LOGTAG_EJB_TIMING

public static final java.lang.String LOGTAG_EJB_TIMING
See Also:
Constant Field Values

DELIMITER

public static final java.lang.String DELIMITER
See Also:
Constant Field Values

_self

private static LoggingServices _self
The singleton instance of the class.


_tagToTimingToLevel

private java.util.Map _tagToTimingToLevel
Constructor Detail

LoggingServices

private LoggingServices()
Method Detail

getInstance

public static LoggingServices getInstance()
The singleton accessor.

Returns:
the singleton instance of this class

registerThresholdForLevel

public void registerThresholdForLevel(java.lang.String tag,
                                      long triggerThreshold,
                                      org.apache.log4j.Level level)

getLevelForTimingValue

public org.apache.log4j.Level getLevelForTimingValue(java.lang.String tag,
                                                     long timing)

logTiming

public void logTiming(org.apache.log4j.Logger logger,
                      java.lang.String tag,
                      long t1,
                      long t2,
                      TraceKey traceKey,
                      java.lang.String msg,
                      java.lang.Object additionalInfo)
Parameters:
logger -
tag -
t1 -
t2 -
msg -
additionalInfo -

logDelimitedMessage

public void logDelimitedMessage(org.apache.log4j.Logger logger,
                                org.apache.log4j.Level logLevel,
                                java.lang.String tag,
                                java.lang.Object[] messageMembers)
Log a multi-part message with common delimiter.

Parameters:
logger - the logger
logLevel - the logLevel at which to log
tag - the message tag
messageMembers - the pieces of the message