Class PolicyLogger

java.lang.Object
com.sun.istack.logging.Logger
com.sun.xml.ws.policy.privateutil.PolicyLogger

public final class PolicyLogger extends com.sun.istack.logging.Logger
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 Type
    Method
    Description
    getLogger(Class<?> componentClass)
    The 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getLogger

      public static PolicyLogger getLogger(Class<?> componentClass)
      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 be null.
      Returns:
      logger instance preconfigured for use with the component
      Throws:
      NullPointerException - if the componentClass parameter is null.