public static IAppBuilder UseConsoleLogging(this IAppBuilder appBuilder)
 {
     var requestLoggingHandler = new RequestLoggingHandler();
     appBuilder.Use(async (env, next) =>
     {
         await requestLoggingHandler.ConsoleLogger(env, next);
     });
     return appBuilder;
 }
Example #2
0
        public static IAppBuilder UseConsoleLogging(this IAppBuilder appBuilder)
        {
            var requestLoggingHandler = new RequestLoggingHandler();

            appBuilder.Use(async(env, next) =>
            {
                await requestLoggingHandler.ConsoleLogger(env, next);
            });
            return(appBuilder);
        }