public static IAppBuilder UseConsoleLogging(this IAppBuilder appBuilder)
 {
     var requestLoggingHandler = new RequestLoggingHandler();
     appBuilder.Use(async (env, next) =>
     {
         await requestLoggingHandler.ConsoleLogger(env, next);
     });
     return appBuilder;
 }
예제 #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);
        }