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

Комментарии • 46

  • @wandie87
    @wandie87 Год назад +16

    It'd be great to see a continuation of this video with in depth details re structured logging & best practices.

  • @chrisspire
    @chrisspire 4 месяца назад +1

    Simple and practical guide for someone who just wants to start using simple logger. Thanks!

  • @senriofthealexis3998
    @senriofthealexis3998 Год назад

    Very concise video Patrick, thanks for sharing. Would love to see more of this!

  • @millstj
    @millstj Год назад

    Thanks Patrick. Good stuff!

  • @franciscopeguero1164
    @franciscopeguero1164 Год назад +6

    Thank you for sharing this video about Serilog! It was very informative and I appreciate the clear explanations. Great job!

    • @PatrickGod
      @PatrickGod  Год назад +1

      Thanks a lot for your feedback! Glad I could help! 😊

  • @roanzava8732
    @roanzava8732 7 месяцев назад +1

    Thanks Patrick

  • @jamalhussayn
    @jamalhussayn 10 месяцев назад

    Thank you so much for this tutorial. :)

  • @pyoneeisan6682
    @pyoneeisan6682 Год назад

    Very Useful And Great Video. Thank you

  • @PragmaticProgramma
    @PragmaticProgramma Год назад +3

    Excellent as always & very informative / straight forward. I’ll play with it in one of my test applications. Danke!

    • @PatrickGod
      @PatrickGod  Год назад +1

      Thank you so much for your feedback! Have fun playing around with it! 😊

  • @rmsoft
    @rmsoft 8 месяцев назад

    Good start.

  • @user-py2vo1gz4t
    @user-py2vo1gz4t 10 месяцев назад

    Great job. I'd like to see implementation with setting the logs into a database and the best practices for that.

  • @naazeri
    @naazeri Год назад

    that's very nice. thank you 😘😘❤❤

  • @raphaelcordeiro4798
    @raphaelcordeiro4798 3 месяца назад

    Thank you

  • @metodispandjev
    @metodispandjev 2 месяца назад

    Nice video. I was actually looking for DB logging. You should add that.

  • @user-yn8yb5kb9j
    @user-yn8yb5kb9j 5 месяцев назад +1

    Thanks a lot of.

  • @dotnetcoder7809
    @dotnetcoder7809 Год назад

    Very good video

  • @spmaurya1318
    @spmaurya1318 10 месяцев назад

    Pretty useful

  • @pouyalariyan125
    @pouyalariyan125 6 месяцев назад

    you save my time . grate

  • @jvanwong
    @jvanwong 9 месяцев назад

    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

  • @webfax4146
    @webfax4146 Год назад

    Thanks Patrick, great video - could you show an example where the logs can be stored in Azure please?

  • @mesutdemirci7933
    @mesutdemirci7933 Год назад

    Thank you for sharing this video..
    Can we write records to table colons in database?

  • @honeylemonteayum
    @honeylemonteayum 3 месяца назад +1

    thank you for this video

  • @Glockodile
    @Glockodile 8 месяцев назад +1

    Can you show how to do this with DI instead of a static class?

  • @Dcaverman11
    @Dcaverman11 9 месяцев назад

    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.

  • @r376533
    @r376533 7 месяцев назад

    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!!

  • @georgicholakov8140
    @georgicholakov8140 8 месяцев назад

    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?

  • @adnenbenawicha5082
    @adnenbenawicha5082 2 месяца назад

    is it possible to use serilog with MultiTenancy, because i want to log to diffrent database depending the scope of the request ?

  • @mgame8082
    @mgame8082 8 месяцев назад +1

    In 'Get' method, why did you use static logger 'Log' instead of 'ILogger' property that you injected?!

  • @kylenic33
    @kylenic33 9 месяцев назад

    Why are you using the concrete implementation of serilog and not via ILogger interface?

  • @prosedox
    @prosedox 6 месяцев назад

    I need a video which you show logging to db with optimised memory performance

  • @iykeypat
    @iykeypat Год назад +1

    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?

  • @CreativeAvnesh
    @CreativeAvnesh 8 месяцев назад

    can you make a vedio using mysql databse and create auto log table

  • @emreseles
    @emreseles 8 месяцев назад

    how can i know the who did this process in serilog

  • @iykeypat
    @iykeypat Год назад

    Hello everyone, logging to file with Serilog doesn't work after I deploy to IIS...any suggestions on a fix?

  • @alexandersantosablaza7033
    @alexandersantosablaza7033 2 месяца назад

    how to stop serilog writing if disk is full

  • @minimalstory
    @minimalstory 10 месяцев назад

    Вы неверно вызываете логгер, это плохая практика

    • @madoha8641
      @madoha8641 6 месяцев назад

      а как лучше будет

    • @minimalstory
      @minimalstory 6 месяцев назад

      @@madoha8641 если хотите оставьте почту я вам скину как это делается в моём олкружении... ноу впатрика я часто вижу то, что нельзя делать в реальных проектах.

  • @user-lu8ur6bb9p
    @user-lu8ur6bb9p 5 месяцев назад +1

    Very Useful and Informative.