How ILogger works in C# | Custom Rolling File Logger

Поделиться
HTML-код
  • Опубликовано: 20 дек 2024
  • Logging mechanism in NET is incredibly simple and effective. Did you know you could create your own logger and implement it to existing applications. In this video, we'll be creating a Rolling File Logger together.

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

  • @sergiodimarco4693
    @sergiodimarco4693 13 дней назад

    Great video!!!

  • @alper337
    @alper337 10 месяцев назад +1

    Very informative video 😊 thanks.

  • @nonpuoesserevero
    @nonpuoesserevero 6 месяцев назад +1

    Very good video, many thanks.

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

      you're most welcome :) Stay tuned for more videos like this!

  • @suskun612
    @suskun612 10 месяцев назад +1

    Elinize sağlık yeni başlayan arkadaşlar içinde çok güzel örnek. Kütüphane import et register et yolla yapmaktansa mantığı da bilmek önemli.

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

    Great video! I'm new to this and a bit confused about logging in .NET. I understand it's a good idea to use logs to track all activities in the application. But is it advisable to use logging in every method? Or just in complex methods? For instance, when adding an entity to the database, it typically goes through the controller, service, and repository layers. Should I implement logging throughout this traffic?
    Also, a suggestion for a video would be demonstrating logs to be sent via email.

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

      There is Level feature of logging so any logging could have a category. It could be trace(almost everything), debug, information, warning, error or critical.
      So the information that you wanna log should have the corresponding level. You want to log the info only make sense and also you want to categorise them.

  • @bilalyldz8930
    @bilalyldz8930 10 месяцев назад +1

    Gold :)