| 
 | 1 | +2022-02-02 12:58:38.404 +10:00 [INF] Now listening on: https://localhost:5001  | 
 | 2 | +2022-02-02 12:58:38.429 +10:00 [INF] Now listening on: http://localhost:5000  | 
 | 3 | +2022-02-02 12:58:38.430 +10:00 [INF] Application started. Press Ctrl+C to shut down.  | 
 | 4 | +2022-02-02 12:58:38.430 +10:00 [INF] Hosting environment: Development  | 
 | 5 | +2022-02-02 12:58:38.431 +10:00 [INF] Content root path: C:\Development\nblumhardt\serilog-aspnetcore\samples\Sample  | 
 | 6 | +2022-02-02 12:58:45.038 +10:00 [INF] Hello, world!  | 
 | 7 | +2022-02-02 12:58:45.132 +10:00 [INF] HTTP GET / responded 200 in 134.6222 ms  | 
 | 8 | +2022-02-02 12:58:47.028 +10:00 [INF] Hello, world!  | 
 | 9 | +2022-02-02 12:58:47.031 +10:00 [INF] HTTP GET / responded 200 in 3.5411 ms  | 
 | 10 | +2022-02-02 12:58:48.217 +10:00 [ERR] HTTP GET /Home/Privacy responded 500 in 3.4740 ms  | 
 | 11 | +System.InvalidOperationException: Something went wrong.  | 
 | 12 | +   at Sample.Controllers.HomeController.Privacy() in C:\Development\nblumhardt\serilog-aspnetcore\samples\Sample\Controllers\HomeController.cs:line 38  | 
 | 13 | +   at lambda_method17(Closure , Object , Object[] )  | 
 | 14 | +   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)  | 
 | 15 | +   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()  | 
 | 16 | +   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)  | 
 | 17 | +   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()  | 
 | 18 | +--- End of stack trace from previous location ---  | 
 | 19 | +   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)  | 
 | 20 | +   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)  | 
 | 21 | +   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()  | 
 | 22 | +--- End of stack trace from previous location ---  | 
 | 23 | +   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)  | 
 | 24 | +   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)  | 
 | 25 | +   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)  | 
 | 26 | +   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()  | 
 | 27 | +--- End of stack trace from previous location ---  | 
 | 28 | +   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)  | 
 | 29 | +   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)  | 
 | 30 | +   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)  | 
 | 31 | +   at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext) in C:\Development\nblumhardt\serilog-aspnetcore\src\Serilog.AspNetCore\AspNetCore\RequestLoggingMiddleware.cs:line 62  | 
 | 32 | +2022-02-02 12:58:48.259 +10:00 [ERR] An unhandled exception has occurred while executing the request.  | 
 | 33 | +System.InvalidOperationException: Something went wrong.  | 
 | 34 | +   at Sample.Controllers.HomeController.Privacy() in C:\Development\nblumhardt\serilog-aspnetcore\samples\Sample\Controllers\HomeController.cs:line 38  | 
 | 35 | +   at lambda_method17(Closure , Object , Object[] )  | 
 | 36 | +   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)  | 
 | 37 | +   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()  | 
 | 38 | +   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)  | 
 | 39 | +   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()  | 
 | 40 | +--- End of stack trace from previous location ---  | 
 | 41 | +   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)  | 
 | 42 | +   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)  | 
 | 43 | +   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()  | 
 | 44 | +--- End of stack trace from previous location ---  | 
 | 45 | +   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)  | 
 | 46 | +   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)  | 
 | 47 | +   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)  | 
 | 48 | +   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()  | 
 | 49 | +--- End of stack trace from previous location ---  | 
 | 50 | +   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)  | 
 | 51 | +   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)  | 
 | 52 | +   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)  | 
 | 53 | +   at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext) in C:\Development\nblumhardt\serilog-aspnetcore\src\Serilog.AspNetCore\AspNetCore\RequestLoggingMiddleware.cs:line 62  | 
 | 54 | +   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)  | 
 | 55 | +2022-02-02 12:58:58.353 +10:00 [INF] Application is shutting down...  | 
 | 56 | +2022-02-02 12:58:58.379 +10:00 [INF] Stopped cleanly  | 
0 commit comments