示例#1
0
        public static void UseRaccoonLog(this IApplicationBuilder app,
                                         Action <HttpMessageLogMiddlewareBuilder> configure)
        {
            var builder = new HttpMessageLogMiddlewareBuilder();

            configure(builder);

            if (builder.EnableHttpLogging)
            {
                app.UseMiddleware <HttpMessageLogMiddleware>();
            }
        }
示例#2
0
 public static void EnableHttpLogging(this HttpMessageLogMiddlewareBuilder builder)
 {
     builder.EnableHttpLogging = true;
 }