Class PolicyLogger
java.lang.Object
com.sun.istack.logging.Logger
com.sun.xml.ws.policy.privateutil.PolicyLogger
This is a helper class that provides some convenience methods wrapped around the
standard
Logger interface.- Author:
- Marek Potociar, Fabian Ritzmann
-
Method Summary
Modifier and TypeMethodDescriptionstatic PolicyLoggerThe factory method returns preconfigured PolicyLogger wrapper for the class.Methods inherited from class com.sun.istack.logging.Logger
config, config, config, entering, entering, exiting, exiting, fine, fine, finer, finer, finer, finest, finest, finest, getLogger, info, info, info, isLoggable, isMethodCallLoggable, log, log, log, log, logException, logException, logException, logSevereException, logSevereException, logSevereException, setLevel, severe, severe, severe, warning, warning, warning
-
Method Details
-
getLogger
The factory method returns preconfigured PolicyLogger 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.
-