Class TxLogger


  • public final class TxLogger
    extends Object
    This is a helper class that provides some convenience methods wrapped around the standard Logger interface.

    Logging domains: wstx // general for all web service transactions wstx.wscoord // for ws-coordination logging wstx.at // for ws-atomic transaction logging.

    See Also:
    getLogger(Class), getATLogger(Class), getCoordLogger(Class)
    • Method Detail

      • getLogger

        public static TxLogger getLogger​(Class componentClass)
        The factory method returns preconfigured TxLogger wrapper for the class. Since there is no caching implemented, it is advised that the method is called only once per a class in order to initialize a final static logger variable, which is then used through the class to perform actual logging tasks.
        Parameters:
        componentClass - class of the component that will use the logger instance. Must not be null.
        Returns:
        logger instance preconfigured for use with the component
        Throws:
        NullPointerException - if the componentClass parameter is null.
      • getATLogger

        public static TxLogger getATLogger​(Class componentClass)
        Logging specifically for *.wstx.wsat subsystem.
      • getCoordLogger

        public static TxLogger getCoordLogger​(Class componentClass)
        Logging specifically for *.wstx.wscoord subsystem.
      • finest

        public void finest​(String methodName,
                           String message)
      • finer

        public void finer​(String methodName,
                          String message)
      • fine

        public void fine​(String methodName,
                         String message)
      • info

        public void info​(String methodName,
                         String message)
      • config

        public void config​(String methodName,
                           String message)
      • warning

        public void warning​(String methodName,
                            String message)
      • severe

        public void severe​(String methodName,
                           String message)
      • entering

        public void entering​(String methodName)
      • entering

        public void entering​(String methodName,
                             Object parameter)
      • entering

        public void entering​(String methodName,
                             Object[] parameters)
      • exiting

        public void exiting​(String methodName)
      • exiting

        public void exiting​(String methodName,
                            Object result)
      • isLogging

        public boolean isLogging​(Level level)