- java.lang.Object
-
- com.sun.xml.ws.tx.at.common.TxLogger
-
public final class TxLogger extends Object
This is a helper class that provides some convenience methods wrapped around the standardLoggerinterface. 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfig(String methodName, String message)voidconfig(String methodName, String message, Throwable thrown)voidentering(String methodName)voidentering(String methodName, Object parameter)voidentering(String methodName, Object[] parameters)voidexiting(String methodName)voidexiting(String methodName, Object result)voidfine(String methodName, String message)voidfine(String methodName, String message, Throwable thrown)voidfiner(String methodName, String message)voidfiner(String methodName, String message, Throwable thrown)voidfinest(String methodName, String message)voidfinest(String methodName, String message, Throwable thrown)static TxLoggergetATLogger(Class componentClass)Logging specifically for *.wstx.wsat subsystem.static TxLoggergetCoordLogger(Class componentClass)Logging specifically for *.wstx.wscoord subsystem.static TxLoggergetLogger(Class componentClass)The factory method returns preconfigured TxLogger wrapper for the class.voidinfo(String methodName, String message)voidinfo(String methodName, String message, Throwable thrown)booleanisLogging(Level level)voidlog(Level level, String methodName, String message)voidlog(Level level, String methodName, String message, Throwable thrown)voidsevere(String methodName, String message)voidsevere(String methodName, String message, Throwable thrown)voidwarning(String methodName, String message)voidwarning(String methodName, String message, Throwable thrown)
-
-
-
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 benull.- Returns:
- logger instance preconfigured for use with the component
- Throws:
NullPointerException- if the componentClass parameter isnull.
-
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.
-
entering
public void entering(String methodName)
-
exiting
public void exiting(String methodName)
-
isLogging
public boolean isLogging(Level level)
-
-