Exemplo n.º 1
0
 /// <summary>
 /// Sets the verbosity for the underlying <see cref="HttpTracerHandler"/>
 /// </summary>
 /// <param name="verbosity"></param>
 /// <returns></returns>
 public HttpHandlerBuilder SetHttpTracerVerbosity(HttpMessageParts verbosity)
 {
     _rootHandler.Verbosity = verbosity;
     return(this);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Trace http traffic and log Apizr execution steps with verbosity
 /// </summary>
 /// <param name="trafficVerbosity">Http traffic tracing verbosity (default: all)</param>
 /// <param name="apizrVerbosity">Apizr execution steps logging verbosity (default: high)</param>
 public LogItAttribute(HttpMessageParts trafficVerbosity = HttpMessageParts.All, ApizrLogLevel apizrVerbosity = ApizrLogLevel.High)
 {
     TrafficVerbosity = trafficVerbosity;
     ApizrVerbosity   = apizrVerbosity;
 }
 public IApizrExtendedOptionsBuilder WithLoggingVerbosity(HttpMessageParts trafficVerbosity,
                                                          ApizrLogLevel apizrVerbosity)
 => WithLoggingVerbosity(_ => trafficVerbosity, _ => apizrVerbosity);