LOGGING in ASP.NET Core | Getting Started With ASP.NET Core Series

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ต.ค. 2024

ความคิดเห็น • 106

  • @mondlimkhanyiswa1206
    @mondlimkhanyiswa1206 2 ปีที่แล้ว +4

    I am lost for words. The best teacher I have watched of dotnet in TH-cam.

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Thank you , you've made my day!! Do check out my full series on ASP here bit.ly/asp-net-core-series

  • @stanyurynets6258
    @stanyurynets6258 2 ปีที่แล้ว +5

    Perfect tutorial format. Not a word wasted. Every piece of info is relevant. Thanks Rahul! Keep up amazing work! TH-cam community needs you!!!

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Thank you Stan for the lovely comment! Do check out the other videos in this series bit.ly/asp-net-core-series

  • @thesuperiorman8342
    @thesuperiorman8342 3 ปีที่แล้ว +1

    You're very robotic but your explanation is clear, structured and fairly concise. Thank you

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +3

      Thank you , yes I am working on the delivery side. 😀

  • @dipendupaul
    @dipendupaul 2 ปีที่แล้ว +1

    Thanks for the clear and concise video on logging

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Happy to help Dipendu. Do check the full ASP NET Series here bit.ly/asp-net-core-series

  • @scorpio6969
    @scorpio6969 3 ปีที่แล้ว +1

    Hi Rahul thanks for sharing your knowledge. Your step by step approach and especially explaining why and what is worth every penny. Excellent work, keep it up.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      So nice of you Manik. Hope you have come across the entire series here th-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html
      Glad these are helping!

  • @jayantvasantkenjalkar6798
    @jayantvasantkenjalkar6798 9 หลายเดือนก่อน

    I get a very detailed info here,Thanks Rahul.Keep it up !!

    • @RahulNath
      @RahulNath  9 หลายเดือนก่อน

      Happy to hear that Jayant. Do check out the full series bit.ly/asp-net-core-series

  • @sreenathangamuthu9275
    @sreenathangamuthu9275 2 ปีที่แล้ว +1

    Hi Rahul,
    So far i have watched 7 to 8 videos in this playlist. It was really helpful to understand the concepts with examples.
    I would say it fare better than many paid courses out there for .Net Core in the market.
    Thanks for making videos like this.
    Can you also please below keep concepts in your video lists?
    1. Custom Log provider
    2. How to add Base path in api endpoint

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Glad to hear that Sreenath and thank you. My popular series are here bio.link/rahulpnath
      Have you checked my video and post on http client which I guess might cover parts of (2) - www.rahulpnath.com/blog/are-you-using-httpclient-in-the-right-way/
      Thank you for being a member and supporting this channel. If you are on Discord, you should be able to chat to me there too ! Details in this post th-cam.com/users/postUgkx7greCBfODLFYQYFoS-HP8Vh1UE_JnE6j

  • @dineshbabu2468
    @dineshbabu2468 4 ปีที่แล้ว +1

    Nice Informative

    • @RahulNath
      @RahulNath  4 ปีที่แล้ว

      Thank you 😀

  • @anurag3487
    @anurag3487 3 ปีที่แล้ว

    learnt new stuffs - how to include log category and log level info in the appsettings.json file. Very informative video. Thanks

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Thank you Anurag for letting me know about each of these videos. It makes me happy to know these are helpful!

  • @TellaTrix
    @TellaTrix 3 ปีที่แล้ว +1

    it was really good insight over logging messages in console, As you have mentioned here "scope logging with transaction " i want to integrate with application insights to track the logging for each and every request. to know more with what was happened to particular call. Sometime my api controller call business logic and since it is asynchronous environment we were not able to track which particular request has the problem and we want to log with request id through out the lifecycle. After i watch this video i got clear insight what was happen with that call. Thanks for sharing this. really appreciate your efforts.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Great happy to hear it helped you!

  • @bharathkumaramarnath5346
    @bharathkumaramarnath5346 3 ปีที่แล้ว +1

    Wow! very informative!!! Many thanks 🙏

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Glad it was helpful Bharath! Do check out the full series here bit.ly/asp-net-core-series

  • @sbmqureshi77
    @sbmqureshi77 ปีที่แล้ว

    Your video really help me to check interview good work bro

    • @RahulNath
      @RahulNath  ปีที่แล้ว +1

      Glad to hear that and good luck with the interviews!

  • @sagarmistry6210
    @sagarmistry6210 หลายเดือนก่อน

    Hi Rahul. Thanks man for an amazing videos.
    Can we use Seq on AWS if our API is hosted on ECS or EB Fargate?
    If yes, will it eliminate AWS Cloudwatch logs mining cost?

  • @psycho.2u
    @psycho.2u ปีที่แล้ว

    All your videos are going to my dotnet playlist. Your videos are awesome!!

    • @RahulNath
      @RahulNath  ปีที่แล้ว

      Glad you like them! here is my full ASP Series bit.ly/asp-net-core-series

  • @starman9000
    @starman9000 4 ปีที่แล้ว +1

    Hey Rahul ! Your video like 'Does one thing and does well' like 'S' of SOLID! great one! i wonder your voice tone remain same entire video length, You are like born teacher! is that possible to do Multi layer application, it don't have to be in detail but project structure (DAL, BLL, Web) with Dependency injection along with Test project, just skeleton will do! Thank you.

    • @RahulNath
      @RahulNath  4 ปีที่แล้ว

      Thanks Jay and happy that you are finding these useful. Yes I am doing a video on setting up project structure soon, probably in September.

  • @Kishore-w5j
    @Kishore-w5j 5 หลายเดือนก่อน

    Always awesome!

    • @RahulNath
      @RahulNath  3 หลายเดือนก่อน

      Glad to hear that and hope you are enjoying the series bit.ly/asp-net-core-series

  • @UPSCCSE-ku7ej
    @UPSCCSE-ku7ej 4 ปีที่แล้ว

    Awesome work Mr.Rahul

  • @sribalajivelans9819
    @sribalajivelans9819 2 ปีที่แล้ว +1

    Thanks Bro, I need one think, how to store logs to File, can please suggest best one

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว +1

      Depends on where you are hosting - These two links might help
      docs.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-6.0#azure-app-service
      github.com/aspnet/Logging/issues/441

  • @bloopers2967
    @bloopers2967 3 ปีที่แล้ว +2

    Can you please make a video with logging in azure app-insights

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Good suggestion. Added to my list, I will.

  • @lucasrodrigues9766
    @lucasrodrigues9766 2 ปีที่แล้ว

    Great tutorial.

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว +1

      Glad you liked it Lucas. Check out the full ASP Series here bit.ly/asp-net-core-series

  • @ashwitapola2229
    @ashwitapola2229 3 ปีที่แล้ว +1

    Very Informative. Is Seq is similar to Application Insights?

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you Ashwita 😀
      Seq is for centralised logging whereas app insights is more for application level monitoring. Let know if that helps.

  • @rock_0075
    @rock_0075 ปีที่แล้ว

    Thanks for the video, so on line 21 the `weatherforcastController` is not a type rather just a category as you mentioned?

    • @RahulNath
      @RahulNath  ปีที่แล้ว

      Hey can you please point me to the video location that you are referring to?

  • @jds2024
    @jds2024 3 ปีที่แล้ว +1

    Hi Rahul, Thank you very much for all the information.
    The builder.AddConsole(); not working and to reinitiate the logger after clearprovider() function I had to use the builder.debug(); What is the reason for this issue.
    Thank you

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Glad you like the video Janith. I just tried ClearProviders and added AddConsole and works fine for me. Can you elaborate what is not working or put a sample code repo so that I can look.

  • @asht3118
    @asht3118 3 ปีที่แล้ว +1

    Could you please make video on Application insights.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Will add it to my list. Anything in particular you are looking at with Appinsights?

  • @akfsf00543
    @akfsf00543 ปีที่แล้ว

    Hi Rahul, this is a good video about logger. I have a query how to save a log file?

    • @RahulNath
      @RahulNath  ปีที่แล้ว +1

      You can update the configuration to log to a file destination - See example here learn.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-7.0#azure-app-service

  • @vinothrajendran858
    @vinothrajendran858 3 ปีที่แล้ว +1

    Why we need to use Microsoft key in the logging section? Please explain. It's a syntax?

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      I talk about this at 15:05. It represents the Category. The 'Microsoft' category applies to all categories that start with Microsoft. You can read more about it here docs.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-5.0&WT.mc_id=AZ-MVP-5003875#configure-logging
      Hope that helps.

    • @vinothrajendran858
      @vinothrajendran858 3 ปีที่แล้ว

      @@RahulNath thank you :)

  • @melk48111
    @melk48111 2 ปีที่แล้ว +1

    What console are you using ? Which IDE are you using ?

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      I’m using Windows Terminal. More details here www.rahulpnath.com/blog/setting-up-windows-terminal/
      Let me know if you have additional questions.

    • @melk48111
      @melk48111 2 ปีที่แล้ว +1

      @@RahulNath also which IDE ? Is it Visual studio ?

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      @@melk48111 Mostly using Jetbrains Rider. Use VS at times too.

  • @aliensoul7600
    @aliensoul7600 ปีที่แล้ว

    why now a days 480px it not showing in most of channels? showing only 360px > 720px 😢

  •  2 ปีที่แล้ว

    Hi, is there a problem if I leave the seq setting active when publishing my api?

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Do you have seq set up in all environments? If not I would put it behind a flag

  • @amankadakuntla2876
    @amankadakuntla2876 2 ปีที่แล้ว

    Pls show or provide related links on how to create a correlation id and pass it among different APIs

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว +1

      Great suggestion Aman. Yes I will do one of that - Added to my list.

  • @keerthang5557
    @keerthang5557 3 ปีที่แล้ว

    Excellent Tutorial Sir!

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Thank you Keerthan and happy you liked it. Do check out the other videos in the ASP NET Core Series here th-cam.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html. You might like them too.
      Also, feel free to let me know in case you need any particular areas covered.
      And you can call me Rahul 😀

    • @keerthang5557
      @keerthang5557 3 ปีที่แล้ว +1

      @@RahulNath Sir, I am doing a project on Asp.net core web api, and I need to do Http Polling, also Can you please explain how to deploy .net core web api on amazon ec2 windows instance?

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      @@keerthang5557 Is your application only to poll an HTTP endpoint? In that case, I would suggest checking out AWS Lambda and set up a timed trigger so that it will poll at set intervals.

    • @keerthang5557
      @keerthang5557 3 ปีที่แล้ว +1

      @@RahulNath sure sir, Can you please provide a tutorial on how to deploy .net core web api on amazon ec2 windows instance

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      @@keerthang5557 Sure will do. Not sure how soon though. Which DevOps tool are you using?
      And call me Rahul 😀

  • @Blr046
    @Blr046 3 ปีที่แล้ว

    Really liked the video. Thank you so much. I am using nlog for logging, will explore on Seq. Is it possible to turn ON or OFF either nlog or Seq based on the need without changing the implementation.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Thank you! Yes you can switch case it in the registration. I usually have a #IF Debug and set up Seq on my local even if it's not used in production, so that at least locally I can look at logs. Is that what you had in mind?

  • @mounikakasthuri4162
    @mounikakasthuri4162 ปีที่แล้ว

    Hai Rahul , How to find Exceptions in Production Environment???

    • @RahulNath
      @RahulNath  ปีที่แล้ว +1

      Depends on how you have set up your logging and exception handling. I have done a video here th-cam.com/video/Cy53ENszjWo/w-d-xo.html
      Where are you logging error messages to? You should be able to look in there - what problem are you facing Mounika?

  • @stefano_schmidt
    @stefano_schmidt ปีที่แล้ว

    changes in Seq property inside appsettings.Development.json don't affect at all (Asp.net 6)

  • @tesabcfgh
    @tesabcfgh 2 ปีที่แล้ว +1

    Take a bow 👍👍👍

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Glad you like it! Hope you are enjoying the full series bit.ly/asp-net-core-series

  • @RAM-ff8dy
    @RAM-ff8dy 4 ปีที่แล้ว +1

    Looking forward to Asp net core project from scratch...

    • @RahulNath
      @RahulNath  4 ปีที่แล้ว +2

      Yes that is the plan once I get through the basics!

  • @ИванИванов-о8я9с
    @ИванИванов-о8я9с 2 ปีที่แล้ว

    How can I add the application name to every log message? I have many services and one seq. Thank you.

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      You can use serilog enrichers and set it up on initial setup github.com/serilog/serilog/wiki/Enrichment

  • @akhilm4867
    @akhilm4867 3 ปีที่แล้ว +1

    Man please do a video about session and entity framework core

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you for the suggestion - yes I have some planned for EF.

  • @anandvijayan710
    @anandvijayan710 3 ปีที่แล้ว

    Another good video. I have a question. How to log into a file?

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you Anand. You will have to use third party providers, Serilog for example github.com/serilog/serilog-sinks-file
      Here is an associated GitHub issue github.com/aspnet/Logging/issues/441
      Any particular reason you want it in a file? Is it for console applications or sorts?

  • @melk48111
    @melk48111 3 ปีที่แล้ว

    your videos are awesome.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Thank you Melvis! Makes me happy to hear such positive comments. Do let know if you want any particular areas to be covered

    • @melk48111
      @melk48111 3 ปีที่แล้ว +1

      @@RahulNath I would like to see .Net core application single sign on using Azure (if you are into Azure)

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      @@melk48111 Great suggestion, I will add it to my list. Meanwhile, have you checked out my video on JWT Authentication th-cam.com/video/YGUgmWd9xaw/w-d-xo.html

  • @sannithchandra4955
    @sannithchandra4955 ปีที่แล้ว

    Hi sir could you please say how to store user details in log files whenever any user logins in c# web api/.net core

    • @RahulNath
      @RahulNath  ปีที่แล้ว

      Are you using any specific Logging library? I would try and inject in the logger context if possible. Here is a example when using Serilog as the library stackoverflow.com/questions/51261177/add-username-into-serilog
      Also make sure you are not having any PII info being logged.

  • @RoyZASTEROiD
    @RoyZASTEROiD 2 ปีที่แล้ว

    2:22 How to disassamble like this in Visual Studio 2019 ?

    • @RahulNath
      @RahulNath  2 ปีที่แล้ว

      Guess with Resharper you can. Not sure otherwise.

  • @barwalgayatri4655
    @barwalgayatri4655 3 ปีที่แล้ว

    Please provide 2 Viseos 1) How to Do Async Communication using RabbitMQ in Microservices 2) How to Handle WDI If we want Huge data eg. Corona Afftected cities and List of All patiests which is as long as Thousands and thousand records long.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว

      Replied here th-cam.com/video/5GlgHV_12-k/w-d-xo.html&lc=Ugx8OJ4UpefrHYUjAFJ4AaABAg.9SzdyYZMm-W9SznHUZp5Bk
      (Next time please avoid copy pasting comment, as I've to copy paste replies too 😀)

  • @kartikgoswami
    @kartikgoswami 11 หลายเดือนก่อน

    Hey there can you share you Discord Server link ? I can't see it in description

    • @RahulNath
      @RahulNath  11 หลายเดือนก่อน

      It is currently open to supporters of the youtube channel th-cam.com/users/postUgkxefGoIC0uzbtnZkQ036MO04hm8Vvk7HM_
      Let me know in case you need any help or have questions.

  • @sairamspandy4160
    @sairamspandy4160 4 ปีที่แล้ว

    Hi , can you make videos on asynchronous programming in asp.net core

    • @RahulNath
      @RahulNath  4 ปีที่แล้ว

      Sure I will, Thank you for your suggestion. Drop in more if you have any 👍

  • @triyuga
    @triyuga 4 ปีที่แล้ว +2

    Nice shirt!

  • @anirudhsingh8619
    @anirudhsingh8619 3 ปีที่แล้ว

    Informative but logging in the text file should also be explained.

    • @RahulNath
      @RahulNath  3 ปีที่แล้ว +1

      Thank you Anirudh!
      _ASP.NET__ Core doesn't include a logging provider for writing logs to files. To write logs to files from an __ASP.NET__ Core app, consider using a third-party logging provider._
      docs.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-5.0#built-in-logging-providers&WT.mc_id=AZ-MVP-5003875
      Let know if that helps and if you have additional questions.

    • @anirudhsingh8619
      @anirudhsingh8619 3 ปีที่แล้ว +1

      @@RahulNath cool

  • @nikeshbhagat3166
    @nikeshbhagat3166 10 หลายเดือนก่อน

    can we do logging data using mongodb

    • @RahulNath
      @RahulNath  9 หลายเดือนก่อน

      You could log data to mongodb if needed.