Serilog 🚀 Logging in .NET 7 Made Simple & Fun
HTML-код
- Опубликовано: 13 июл 2024
- 🚀 Get the .NET 8 Web Dev Jump-Start Course for FREE: dotnet8.patrickgod.com
💖 Support me on Patreon for exclusive source code access: / _patrickgod
🐦 Let's get social on Twitter/X: x.com/_PatrickGod
🚀 .NET Jumpstart Course: www.udemy.com/course/net-core...
🔥 Blazor E-Commerce Course: www.udemy.com/course/blazor-e...
🔥 Blazor Bootcamp: www.udemy.com/course/blazor-w...
Table of Contents:
00:00 Serilog 🚀 Logging in .NET 7 Made Simple
00:57 Install NuGet Package
02:29 Log Your First Line
03:46 Utilizer Destructuring
05:13 Configure Serilog
07:22 Log into a File
10:01 Read the Config from the appsettings.json
13:11 Automatic HTTP Request Logging
#DotNet #Serilog #PatrickGod
It'd be great to see a continuation of this video with in depth details re structured logging & best practices.
Simple and practical guide for someone who just wants to start using simple logger. Thanks!
Very concise video Patrick, thanks for sharing. Would love to see more of this!
Thanks Patrick. Good stuff!
Thank you for sharing this video about Serilog! It was very informative and I appreciate the clear explanations. Great job!
Thanks a lot for your feedback! Glad I could help! 😊
Thanks Patrick
Thank you so much for this tutorial. :)
Very Useful And Great Video. Thank you
Excellent as always & very informative / straight forward. I’ll play with it in one of my test applications. Danke!
Thank you so much for your feedback! Have fun playing around with it! 😊
Good start.
Great job. I'd like to see implementation with setting the logs into a database and the best practices for that.
that's very nice. thank you 😘😘❤❤
Thank you
Nice video. I was actually looking for DB logging. You should add that.
Thanks a lot of.
Very good video
Pretty useful
you save my time . grate
Thanks Patrick, this is great video. Would like to know is that possible for serilog to configure/control the log file size? For example if the log file size more than 10 mb then create a new log file
Thanks Patrick, great video - could you show an example where the logs can be stored in Azure please?
Thank you for sharing this video..
Can we write records to table colons in database?
thank you for this video
Welcome!
Can you show how to do this with DI instead of a static class?
Would love to see a video on using Serilog in an Azure App Service or Function App and logging to blob storage or blob table.
Hello
I'm new for .net 7,I have some question
if i have some static class function,maybe in model/Hello.cs. serilog still can write log??
thank a lot!!
Hi, how we can do a conditional logging of the request and response with Serilog only if the status code is > 399 for example? Can I achieve this only with this serilog http middleware or do I need additional middleware for this?
is it possible to use serilog with MultiTenancy, because i want to log to diffrent database depending the scope of the request ?
In 'Get' method, why did you use static logger 'Log' instead of 'ILogger' property that you injected?!
Why are you using the concrete implementation of serilog and not via ILogger interface?
I need a video which you show logging to db with optimised memory performance
Please Mr. Patrick, I want to ask, would the logging still work after I deploy the application on IIS? or is it only for development environment?
it will work on the IIS Too
can you make a vedio using mysql databse and create auto log table
how can i know the who did this process in serilog
Hello everyone, logging to file with Serilog doesn't work after I deploy to IIS...any suggestions on a fix?
how to stop serilog writing if disk is full
Вы неверно вызываете логгер, это плохая практика
а как лучше будет
@@madoha8641 если хотите оставьте почту я вам скину как это делается в моём олкружении... ноу впатрика я часто вижу то, что нельзя делать в реальных проектах.
Very Useful and Informative.
Thank you!