Class PolicyLogger

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

public final class PolicyLogger extends Logger
This is a helper class that provides some convenience methods wrapped around the standard Logger interface.
Author:
Marek Potociar, Fabian Ritzmann
  • 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.