Class LoggingFactory

  • All Implemented Interfaces:
    com.microsoft.rest.v2.policy.RequestPolicyFactory

    public final class LoggingFactory
    extends Object
    implements com.microsoft.rest.v2.policy.RequestPolicyFactory
    This is a factory which creates policies in an HttpPipeline for logging requests and responses. In most cases, it is sufficient to configure an object of the LoggingOptions type and set those as a field on a PipelineOptions structure to configure a default pipeline. The factory and policy must only be used directly when creating a custom pipeline.
    • Constructor Detail

      • LoggingFactory

        public LoggingFactory​(LoggingOptions loggingOptions)
        Creates a factory which can create LoggingPolicy objects to insert in the pipeline. This will allow for logging requests and responses.
        Parameters:
        loggingOptions - The configurations for this factory. Null will indicate use of the default options.
    • Method Detail

      • create

        public com.microsoft.rest.v2.policy.RequestPolicy create​(com.microsoft.rest.v2.policy.RequestPolicy next,
                                                                 com.microsoft.rest.v2.policy.RequestPolicyOptions options)
        Specified by:
        create in interface com.microsoft.rest.v2.policy.RequestPolicyFactory