com.ados.hestia.utils.logging
Class HestiaLogger

java.lang.Object
  extended by org.apache.log4j.Category
      extended by org.apache.log4j.Logger
          extended by com.ados.hestia.utils.logging.HestiaLogger
All Implemented Interfaces:
AppenderAttachable

public class HestiaLogger
extends Logger

The Hestia Logger, which is a extension of Log4j revision 14..

Version:
$Id: HestiaLogger.java 1908 2006-05-15 10:20:42 +0000 (?, 15 5 2006) khmel $

Nested Class Summary
static class HestiaLogger.LoggerID
           
static class HestiaLogger.PartnerPeer
           
static class HestiaLogger.PIPInfo
           
static class HestiaLogger.RNBMID
           
 
Field Summary
 
Fields inherited from class org.apache.log4j.Category
additive, level, name, parent, repository, resourceBundle
 
Constructor Summary
HestiaLogger(String name)
           
 
Method Summary
 void debug(HestiaLogger.LoggerID loggerID, HestiaLogger.PartnerPeer partners, HestiaLogger.RNBMID rnbmid, HestiaLogger.PIPInfo info, String messageType, String direction, Object message)
           
 void debug(HestiaLogger.LoggerID loggerID, HestiaLogger.PartnerPeer partners, HestiaLogger.RNBMID rnbmid, HestiaLogger.PIPInfo info, String messageType, String direction, Object message, Throwable t)
          Log a message object with the DEBUG Level.
 void debug(String id, Object message)
           
 void debug(String id, Object message, Throwable t)
           
 void error(HestiaLogger.LoggerID loggerID, HestiaLogger.PartnerPeer partners, HestiaLogger.RNBMID rnbmid, HestiaLogger.PIPInfo info, String messageType, String direction, Object message)
           
 void error(HestiaLogger.LoggerID loggerID, HestiaLogger.PartnerPeer partners, HestiaLogger.RNBMID rnbmid, HestiaLogger.PIPInfo info, String messageType, String direction, Object message, Throwable t)
          Log a message object with the ERROR Level.
 void error(String id, Object message)
           
 void error(String id, Object message, Throwable t)
           
 void fatal(HestiaLogger.LoggerID loggerID, HestiaLogger.PartnerPeer partners, HestiaLogger.RNBMID rnbmid, HestiaLogger.PIPInfo info, String messageType, String direction, Object message)
           
 void fatal(HestiaLogger.LoggerID loggerID, HestiaLogger.PartnerPeer partners, HestiaLogger.RNBMID rnbmid, HestiaLogger.PIPInfo info, String messageType, String direction, Object message, Throwable t)
          Log a message object with the FATAL Level.
 void fatal(String id, Object message)
           
 void fatal(String id, Object message, Throwable t)
           
protected  void forcedLog(HestiaLogger.LoggerID loggerID, HestiaLogger.PartnerPeer partners, HestiaLogger.RNBMID rnbmid, HestiaLogger.PIPInfo info, String messageType, String direction, String fqcn, Priority level, Object message, Throwable t)
          This method creates a new logging event and logs the event without further checks.
static Logger getLogger(String name)
          Retrieve a Hestia Logger named according to the value of the name parameter.
 void info(HestiaLogger.LoggerID loggerID, HestiaLogger.PartnerPeer partners, HestiaLogger.RNBMID rnbmid, HestiaLogger.PIPInfo info, String messageType, String direction, Object message)
           
 void info(HestiaLogger.LoggerID loggerID, HestiaLogger.PartnerPeer partners, HestiaLogger.RNBMID rnbmid, HestiaLogger.PIPInfo info, String messageType, String direction, Object message, Throwable t)
          Log a message object with the INFO level.
 void info(String id, Object message)
           
static HestiaLogger.LoggerID toLoggerID(String logID, String traceID)
           
static HestiaLogger.PartnerPeer toPartnerPeer(String partner, String eis)
           
static HestiaLogger.PIPInfo toPIPInfo(String pipID, String pipVersion, String pipName)
           
static HestiaLogger.RNBMID toRNBMID(String pipInstanceID, String docInstanceID)
           
 void trace(HestiaLogger.LoggerID loggerID, HestiaLogger.PartnerPeer partners, HestiaLogger.RNBMID rnbmid, HestiaLogger.PIPInfo info, String messageType, String direction, Object message)
           
 void trace(HestiaLogger.LoggerID loggerID, HestiaLogger.PartnerPeer partners, HestiaLogger.RNBMID rnbmid, HestiaLogger.PIPInfo info, String messageType, String direction, Object message, Throwable t)
          Log a message object with the TRACE Level.
 void trace(String id, Object message)
           
 void trace(String id, Object message, Throwable t)
           
 void warn(HestiaLogger.LoggerID loggerID, HestiaLogger.PartnerPeer partners, HestiaLogger.RNBMID rnbmid, HestiaLogger.PIPInfo info, String messageType, String direction, Object message)
           
 void warn(HestiaLogger.LoggerID loggerID, HestiaLogger.PartnerPeer partners, HestiaLogger.RNBMID rnbmid, HestiaLogger.PIPInfo info, String messageType, String direction, Object message, Throwable t)
          Log a message object with the WARN level.
 void warn(String id, Object message)
           
 void warn(String id, Object message, Throwable t)
           
 
Methods inherited from class org.apache.log4j.Logger
getLogger, getLogger, getRootLogger, isTraceEnabled, trace, trace
 
Methods inherited from class org.apache.log4j.Category
addAppender, assertLog, callAppenders, debug, debug, error, error, exists, fatal, fatal, forcedLog, getAdditivity, getAllAppenders, getAppender, getChainedPriority, getCurrentCategories, getDefaultHierarchy, getEffectiveLevel, getHierarchy, getInstance, getInstance, getLevel, getLoggerRepository, getName, getParent, getPriority, getResourceBundle, getResourceBundleString, getRoot, info, info, isAttached, isDebugEnabled, isEnabledFor, isInfoEnabled, l7dlog, l7dlog, log, log, log, removeAllAppenders, removeAppender, removeAppender, setAdditivity, setLevel, setPriority, setResourceBundle, shutdown, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HestiaLogger

public HestiaLogger(String name)
Method Detail

toPartnerPeer

public static HestiaLogger.PartnerPeer toPartnerPeer(String partner,
                                                     String eis)

toLoggerID

public static HestiaLogger.LoggerID toLoggerID(String logID,
                                               String traceID)

toPIPInfo

public static HestiaLogger.PIPInfo toPIPInfo(String pipID,
                                             String pipVersion,
                                             String pipName)

toRNBMID

public static HestiaLogger.RNBMID toRNBMID(String pipInstanceID,
                                           String docInstanceID)

getLogger

public static Logger getLogger(String name)
Retrieve a Hestia Logger named according to the value of the name parameter. If the named logger already exists, then the existing instance will be returned. Otherwise, a new instance is created.


info

public void info(HestiaLogger.LoggerID loggerID,
                 HestiaLogger.PartnerPeer partners,
                 HestiaLogger.RNBMID rnbmid,
                 HestiaLogger.PIPInfo info,
                 String messageType,
                 String direction,
                 Object message,
                 Throwable t)
Log a message object with the INFO level.

Parameters:
id - logid
traceid - transaction-unique id
partnerDUNS - partnerDUNS if you have
eisDUNS - eisDUNS if you have
pipInstanceID - pipInstanceID if you have
docID - documentIdentifier if you have
message - the message object to log
t - the exception to log, including its stack trace.

info

public void info(HestiaLogger.LoggerID loggerID,
                 HestiaLogger.PartnerPeer partners,
                 HestiaLogger.RNBMID rnbmid,
                 HestiaLogger.PIPInfo info,
                 String messageType,
                 String direction,
                 Object message)

info

public void info(String id,
                 Object message)

warn

public void warn(HestiaLogger.LoggerID loggerID,
                 HestiaLogger.PartnerPeer partners,
                 HestiaLogger.RNBMID rnbmid,
                 HestiaLogger.PIPInfo info,
                 String messageType,
                 String direction,
                 Object message,
                 Throwable t)
Log a message object with the WARN level.

Parameters:
id - logid
traceid - transaction-unique id
partnerDUNS - partnerDUNS if you have
eisDUNS - eisDUNS if you have
pipInstanceID - pipInstanceID if you have
docID - documentIdentifier if you have
message - the message object to log
t - the exception to log, including its stack trace.

warn

public void warn(HestiaLogger.LoggerID loggerID,
                 HestiaLogger.PartnerPeer partners,
                 HestiaLogger.RNBMID rnbmid,
                 HestiaLogger.PIPInfo info,
                 String messageType,
                 String direction,
                 Object message)

warn

public void warn(String id,
                 Object message,
                 Throwable t)

warn

public void warn(String id,
                 Object message)

error

public void error(HestiaLogger.LoggerID loggerID,
                  HestiaLogger.PartnerPeer partners,
                  HestiaLogger.RNBMID rnbmid,
                  HestiaLogger.PIPInfo info,
                  String messageType,
                  String direction,
                  Object message,
                  Throwable t)
Log a message object with the ERROR Level.

Parameters:
id - logid
traceid - transaction-unique id
partnerDUNS - partnerDUNS if you have
eisDUNS - eisDUNS if you have
pipInstanceID - pipInstanceID if you have
docID - documentIdentifier if you have
message - the message object to log
t - the exception to log, including its stack trace.

error

public void error(HestiaLogger.LoggerID loggerID,
                  HestiaLogger.PartnerPeer partners,
                  HestiaLogger.RNBMID rnbmid,
                  HestiaLogger.PIPInfo info,
                  String messageType,
                  String direction,
                  Object message)

error

public void error(String id,
                  Object message,
                  Throwable t)

error

public void error(String id,
                  Object message)

fatal

public void fatal(HestiaLogger.LoggerID loggerID,
                  HestiaLogger.PartnerPeer partners,
                  HestiaLogger.RNBMID rnbmid,
                  HestiaLogger.PIPInfo info,
                  String messageType,
                  String direction,
                  Object message,
                  Throwable t)
Log a message object with the FATAL Level.

Parameters:
id - logid
traceid - transaction-unique id
partnerDUNS - partnerDUNS if you have
eisDUNS - eisDUNS if you have
pipInstanceID - pipInstanceID if you have
docID - documentIdentifier if you have
message - the message object to log
t - the exception to log, including its stack trace.

fatal

public void fatal(HestiaLogger.LoggerID loggerID,
                  HestiaLogger.PartnerPeer partners,
                  HestiaLogger.RNBMID rnbmid,
                  HestiaLogger.PIPInfo info,
                  String messageType,
                  String direction,
                  Object message)

fatal

public void fatal(String id,
                  Object message,
                  Throwable t)

fatal

public void fatal(String id,
                  Object message)

trace

public void trace(HestiaLogger.LoggerID loggerID,
                  HestiaLogger.PartnerPeer partners,
                  HestiaLogger.RNBMID rnbmid,
                  HestiaLogger.PIPInfo info,
                  String messageType,
                  String direction,
                  Object message,
                  Throwable t)
Log a message object with the TRACE Level.

Parameters:
id - logid
traceid - transaction-unique id
partnerDUNS - partnerDUNS if you have
eisDUNS - eisDUNS if you have
pipInstanceID - pipInstanceID if you have
docID - documentIdentifier if you have
message - the message object to log
t - the exception to log, including its stack trace.

trace

public void trace(HestiaLogger.LoggerID loggerID,
                  HestiaLogger.PartnerPeer partners,
                  HestiaLogger.RNBMID rnbmid,
                  HestiaLogger.PIPInfo info,
                  String messageType,
                  String direction,
                  Object message)

trace

public void trace(String id,
                  Object message,
                  Throwable t)

trace

public void trace(String id,
                  Object message)

debug

public void debug(HestiaLogger.LoggerID loggerID,
                  HestiaLogger.PartnerPeer partners,
                  HestiaLogger.RNBMID rnbmid,
                  HestiaLogger.PIPInfo info,
                  String messageType,
                  String direction,
                  Object message,
                  Throwable t)
Log a message object with the DEBUG Level.

Parameters:
id - logid
traceid - transaction-unique id
partnerDUNS - partnerDUNS if you have
eisDUNS - eisDUNS if you have
pipInstanceID - pipInstanceID if you have
docID - documentIdentifier if you have
message - the message object to log
t - the exception to log, including its stack trace.

debug

public void debug(HestiaLogger.LoggerID loggerID,
                  HestiaLogger.PartnerPeer partners,
                  HestiaLogger.RNBMID rnbmid,
                  HestiaLogger.PIPInfo info,
                  String messageType,
                  String direction,
                  Object message)

debug

public void debug(String id,
                  Object message,
                  Throwable t)

debug

public void debug(String id,
                  Object message)

forcedLog

protected void forcedLog(HestiaLogger.LoggerID loggerID,
                         HestiaLogger.PartnerPeer partners,
                         HestiaLogger.RNBMID rnbmid,
                         HestiaLogger.PIPInfo info,
                         String messageType,
                         String direction,
                         String fqcn,
                         Priority level,
                         Object message,
                         Throwable t)
This method creates a new logging event and logs the event without further checks.



Copyright © 2005-2006 ADOS Co.,Ltd.. All Rights Reserved.