Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Example ASP.NET Core 3 example #491

Merged
merged 4 commits into from
Oct 2, 2019
Merged

Conversation

304NotModified
Copy link
Member

Works :)

log example:

2019-10-02 23:43:40.1049|0|DEBUG|ASP.NET_Core_3___VS2019.Program|init main |url: |action: |ASP.NET_Core_3___VS2019.Program.Main
2019-10-02 23:44:36.8115|0|DEBUG|ASP.NET_Core_3___VS2019.Program|init main |url: |action: |ASP.NET_Core_3___VS2019.Program.Main
2019-10-02 23:53:15.5075|0|DEBUG|ASP.NET_Core_3___VS2019.Program|init main |url: |action: |ASP.NET_Core_3___VS2019.Program.Main
2019-10-02 23:53:16.3185|1|DEBUG|ASP.NET_Core_3___VS2019.Controllers.HomeController|NLog injected into HomeController |url: https://localhost/|action: Index|ASP.NET_Core_3___VS2019.Controllers.HomeController..ctor
2019-10-02 23:53:16.3185|0|INFO|ASP.NET_Core_3___VS2019.Controllers.HomeController|Hello, this is the index! |url: https://localhost/|action: Index|ASP.NET_Core_3___VS2019.Controllers.HomeController.Index
2019-10-02 23:53:46.8702|0|DEBUG|ASP.NET_Core_3___VS2019.Program|init main |url: |action: |ASP.NET_Core_3___VS2019.Program.Main
2019-10-02 23:53:47.7307|1|DEBUG|ASP.NET_Core_3___VS2019.Controllers.HomeController|NLog injected into HomeController |url: https://localhost/|action: Index|ASP.NET_Core_3___VS2019.Controllers.HomeController..ctor
2019-10-02 23:53:47.7383|0|INFO|ASP.NET_Core_3___VS2019.Controllers.HomeController|Hello, this is the index! |url: https://localhost/|action: Index|ASP.NET_Core_3___VS2019.Controllers.HomeController.Index
2019-10-02 23:53:49.2358|1|DEBUG|ASP.NET_Core_3___VS2019.Controllers.HomeController|NLog injected into HomeController |url: https://localhost/Home/Privacy|action: Privacy|ASP.NET_Core_3___VS2019.Controllers.HomeController..ctor
2019-10-02 23:53:49.2358|0|INFO|ASP.NET_Core_3___VS2019.Controllers.HomeController|Hello, this is the Privacy page! |url: https://localhost/Home/Privacy|action: Privacy|ASP.NET_Core_3___VS2019.Controllers.HomeController.Privacy
2019-10-02 23:53:52.0633|1|DEBUG|ASP.NET_Core_3___VS2019.Controllers.HomeController|NLog injected into HomeController |url: https://localhost/|action: Index|ASP.NET_Core_3___VS2019.Controllers.HomeController..ctor
2019-10-02 23:53:52.0633|0|INFO|ASP.NET_Core_3___VS2019.Controllers.HomeController|Hello, this is the index! |url: https://localhost/|action: Index|ASP.NET_Core_3___VS2019.Controllers.HomeController.Index

full log

2019-10-02 23:43:40.1049|0|DEBUG|ASP.NET_Core_3___VS2019.Program|init main 
2019-10-02 23:43:40.4037|0|INFO|Microsoft.Hosting.Lifetime|Application started. Press Ctrl+C to shut down. 
2019-10-02 23:43:40.4037|0|INFO|Microsoft.Hosting.Lifetime|Hosting environment: Production 
2019-10-02 23:43:40.4131|0|INFO|Microsoft.Hosting.Lifetime|Content root path: D:\nlog\NLog.Web\examples\ASP.NET Core 3\ASP.NET Core 3 - VS2019 
2019-10-02 23:44:36.8115|0|DEBUG|ASP.NET_Core_3___VS2019.Program|init main 
2019-10-02 23:53:15.5075|0|DEBUG|ASP.NET_Core_3___VS2019.Program|init main 
2019-10-02 23:53:16.0804|0|INFO|Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager|User profile is available. Using 'C:\Users\Julian\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest. 
2019-10-02 23:53:16.2482|0|INFO|Microsoft.Hosting.Lifetime|Application started. Press Ctrl+C to shut down. 
2019-10-02 23:53:16.2482|0|INFO|Microsoft.Hosting.Lifetime|Hosting environment: Development 
2019-10-02 23:53:16.2565|0|INFO|Microsoft.Hosting.Lifetime|Content root path: D:\nlog\NLog.Web\examples\ASP.NET Core 3\ASP.NET Core 3 - VS2019 
2019-10-02 23:53:16.2710|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/2.0 GET https://localhost:44318/   
2019-10-02 23:53:16.2873|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'ASP.NET_Core_3___VS2019.Controllers.HomeController.Index (ASP.NET Core 3 - VS2019)' 
2019-10-02 23:53:16.3185|3|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Route matched with {action = "Index", controller = "Home"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Index() on controller ASP.NET_Core_3___VS2019.Controllers.HomeController (ASP.NET Core 3 - VS2019). 
2019-10-02 23:53:16.3185|1|DEBUG|ASP.NET_Core_3___VS2019.Controllers.HomeController|NLog injected into HomeController 
2019-10-02 23:53:16.3185|0|INFO|ASP.NET_Core_3___VS2019.Controllers.HomeController|Hello, this is the index! 
2019-10-02 23:53:16.3388|1|INFO|Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor|Executing ViewResult, running view Index. 
2019-10-02 23:53:16.4346|4|INFO|Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor|Executed ViewResult - view Index executed in 99.46300000000001ms. 
2019-10-02 23:53:16.4346|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action ASP.NET_Core_3___VS2019.Controllers.HomeController.Index (ASP.NET Core 3 - VS2019) in 116.24520000000001ms 
2019-10-02 23:53:16.4346|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'ASP.NET_Core_3___VS2019.Controllers.HomeController.Index (ASP.NET Core 3 - VS2019)' 
2019-10-02 23:53:16.4412|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 170.8933ms 200 text/html; charset=utf-8 
2019-10-02 23:53:16.4672|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/2.0 GET https://localhost:44318/lib/jquery/dist/jquery.min.js   
2019-10-02 23:53:16.4672|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/2.0 GET https://localhost:44318/css/site.css   
2019-10-02 23:53:16.4672|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/2.0 GET https://localhost:44318/lib/bootstrap/dist/js/bootstrap.bundle.min.js   
2019-10-02 23:53:16.4672|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/2.0 GET https://localhost:44318/lib/bootstrap/dist/css/bootstrap.min.css   
2019-10-02 23:53:16.4672|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/2.0 GET https://localhost:44318/js/site.js?v=4q1jwFhaPaZgr8WAUSrux6hAuh0XDg9kPS3xIVq36I0   
2019-10-02 23:53:16.4748|6|INFO|Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware|The file /lib/bootstrap/dist/css/bootstrap.min.css was not modified 
2019-10-02 23:53:16.4748|6|INFO|Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware|The file /css/site.css was not modified 
2019-10-02 23:53:16.4748|6|INFO|Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware|The file /lib/bootstrap/dist/js/bootstrap.bundle.min.js was not modified 
2019-10-02 23:53:16.4748|6|INFO|Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware|The file /js/site.js was not modified 
2019-10-02 23:53:16.4748|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 10.5105ms 304 text/css 
2019-10-02 23:53:16.4748|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 10.549100000000001ms 304 application/javascript 
2019-10-02 23:53:16.4748|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 10.5129ms 304 text/css 
2019-10-02 23:53:16.4748|6|INFO|Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware|The file /lib/jquery/dist/jquery.min.js was not modified 
2019-10-02 23:53:16.4748|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 12.3031ms 304 application/javascript 
2019-10-02 23:53:16.4851|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 17.8036ms 304 application/javascript 
2019-10-02 23:53:46.8702|0|DEBUG|ASP.NET_Core_3___VS2019.Program|init main 
2019-10-02 23:53:47.4819|0|INFO|Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager|User profile is available. Using 'C:\Users\Julian\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest. 
2019-10-02 23:53:47.6401|0|INFO|Microsoft.Hosting.Lifetime|Application started. Press Ctrl+C to shut down. 
2019-10-02 23:53:47.6470|0|INFO|Microsoft.Hosting.Lifetime|Hosting environment: Development 
2019-10-02 23:53:47.6470|0|INFO|Microsoft.Hosting.Lifetime|Content root path: D:\nlog\NLog.Web\examples\ASP.NET Core 3\ASP.NET Core 3 - VS2019 
2019-10-02 23:53:47.6731|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/2.0 GET https://localhost:44318/   
2019-10-02 23:53:47.6954|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'ASP.NET_Core_3___VS2019.Controllers.HomeController.Index (ASP.NET Core 3 - VS2019)' 
2019-10-02 23:53:47.7307|3|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Route matched with {action = "Index", controller = "Home"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Index() on controller ASP.NET_Core_3___VS2019.Controllers.HomeController (ASP.NET Core 3 - VS2019). 
2019-10-02 23:53:47.7307|1|DEBUG|ASP.NET_Core_3___VS2019.Controllers.HomeController|NLog injected into HomeController 
2019-10-02 23:53:47.7383|0|INFO|ASP.NET_Core_3___VS2019.Controllers.HomeController|Hello, this is the index! 
2019-10-02 23:53:47.7550|1|INFO|Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor|Executing ViewResult, running view Index. 
2019-10-02 23:53:47.8607|4|INFO|Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor|Executed ViewResult - view Index executed in 106.67110000000001ms. 
2019-10-02 23:53:47.8607|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action ASP.NET_Core_3___VS2019.Controllers.HomeController.Index (ASP.NET Core 3 - VS2019) in 130.1927ms 
2019-10-02 23:53:47.8642|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'ASP.NET_Core_3___VS2019.Controllers.HomeController.Index (ASP.NET Core 3 - VS2019)' 
2019-10-02 23:53:47.8642|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 195.66230000000002ms 200 text/html; charset=utf-8 
2019-10-02 23:53:47.8946|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/2.0 GET https://localhost:44318/css/site.css   
2019-10-02 23:53:47.8946|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/2.0 GET https://localhost:44318/lib/jquery/dist/jquery.min.js   
2019-10-02 23:53:47.8946|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/2.0 GET https://localhost:44318/lib/bootstrap/dist/js/bootstrap.bundle.min.js   
2019-10-02 23:53:47.8946|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/2.0 GET https://localhost:44318/lib/bootstrap/dist/css/bootstrap.min.css   
2019-10-02 23:53:47.8946|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/2.0 GET https://localhost:44318/js/site.js?v=4q1jwFhaPaZgr8WAUSrux6hAuh0XDg9kPS3xIVq36I0   
2019-10-02 23:53:47.9074|6|INFO|Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware|The file /lib/jquery/dist/jquery.min.js was not modified 
2019-10-02 23:53:47.9074|6|INFO|Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware|The file /js/site.js was not modified 
2019-10-02 23:53:47.9074|6|INFO|Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware|The file /lib/bootstrap/dist/css/bootstrap.min.css was not modified 
2019-10-02 23:53:47.9074|6|INFO|Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware|The file /lib/bootstrap/dist/js/bootstrap.bundle.min.js was not modified 
2019-10-02 23:53:47.9074|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 15.400500000000001ms 304 application/javascript 
2019-10-02 23:53:47.9074|6|INFO|Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware|The file /css/site.css was not modified 
2019-10-02 23:53:47.9074|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 15.669400000000001ms 304 application/javascript 
2019-10-02 23:53:47.9074|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 16.2679ms 304 text/css 
2019-10-02 23:53:47.9074|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 10.602ms 304 application/javascript 
2019-10-02 23:53:47.9074|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 23.061ms 304 text/css 
2019-10-02 23:53:49.2318|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/2.0 GET https://localhost:44318/Home/Privacy   
2019-10-02 23:53:49.2358|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'ASP.NET_Core_3___VS2019.Controllers.HomeController.Privacy (ASP.NET Core 3 - VS2019)' 
2019-10-02 23:53:49.2358|3|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Route matched with {action = "Privacy", controller = "Home"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Privacy() on controller ASP.NET_Core_3___VS2019.Controllers.HomeController (ASP.NET Core 3 - VS2019). 
2019-10-02 23:53:49.2358|1|DEBUG|ASP.NET_Core_3___VS2019.Controllers.HomeController|NLog injected into HomeController 
2019-10-02 23:53:49.2358|0|INFO|ASP.NET_Core_3___VS2019.Controllers.HomeController|Hello, this is the Privacy page! 
2019-10-02 23:53:49.2358|1|INFO|Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor|Executing ViewResult, running view Privacy. 
2019-10-02 23:53:49.2529|4|INFO|Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor|Executed ViewResult - view Privacy executed in 9.669400000000001ms. 
2019-10-02 23:53:49.2529|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action ASP.NET_Core_3___VS2019.Controllers.HomeController.Privacy (ASP.NET Core 3 - VS2019) in 16.787ms 
2019-10-02 23:53:49.2529|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'ASP.NET_Core_3___VS2019.Controllers.HomeController.Privacy (ASP.NET Core 3 - VS2019)' 
2019-10-02 23:53:49.2529|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 25.816300000000002ms 200 text/html; charset=utf-8 
2019-10-02 23:53:52.0611|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/2.0 GET https://localhost:44318/   
2019-10-02 23:53:52.0633|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'ASP.NET_Core_3___VS2019.Controllers.HomeController.Index (ASP.NET Core 3 - VS2019)' 
2019-10-02 23:53:52.0633|3|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Route matched with {action = "Index", controller = "Home"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Index() on controller ASP.NET_Core_3___VS2019.Controllers.HomeController (ASP.NET Core 3 - VS2019). 
2019-10-02 23:53:52.0633|1|DEBUG|ASP.NET_Core_3___VS2019.Controllers.HomeController|NLog injected into HomeController 
2019-10-02 23:53:52.0633|0|INFO|ASP.NET_Core_3___VS2019.Controllers.HomeController|Hello, this is the index! 
2019-10-02 23:53:52.0633|1|INFO|Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor|Executing ViewResult, running view Index. 
2019-10-02 23:53:52.0633|4|INFO|Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor|Executed ViewResult - view Index executed in 2.3147ms. 
2019-10-02 23:53:52.0633|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action ASP.NET_Core_3___VS2019.Controllers.HomeController.Index (ASP.NET Core 3 - VS2019) in 6.473800000000001ms 
2019-10-02 23:53:52.0633|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'ASP.NET_Core_3___VS2019.Controllers.HomeController.Index (ASP.NET Core 3 - VS2019)' 
2019-10-02 23:53:52.0633|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 13.4414ms 200 text/html; charset=utf-8 
2019-10-02 23:53:55.4427|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/2.0 GET https://localhost:44318/aa   
2019-10-02 23:53:55.4427|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 3.8320000000000003ms 404  
2019-10-02 23:54:14.1874|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/2.0 GET https://localhost:44318/aa   
2019-10-02 23:54:14.1916|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 3.875ms 404  

@repo-ranger repo-ranger bot merged commit c8c40ce into dev Oct 2, 2019
@repo-ranger repo-ranger bot deleted the example-aspnetcore3 branch October 2, 2019 22:49
@snakefoot snakefoot added ASP.NET Core ASP.NET Core - all versions and removed ASP.NET Core 3 labels Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ASP.NET Core ASP.NET Core - all versions examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants