site image
Andrew Lock avatar

Andrew Lock

Logging
  1. Loading...
  2. Sponsored by Dometrain Courses—Get 30% off Dometrain Pro with code ANDREW30 and access the best courses for .NET Developers

    30% off with code ANDREW30 on Dometrain Pro
  3. ASP.NET Core in Action, Third Edition

    My new book ASP.NET Core in Action, Third Edition is available now! It supports .NET 7.0, and is available as an eBook or paperback.

  4. Banner image for Creating an extension method for attaching key-value pairs to scope state using ASP.NET Core

    Creating an extension method for attaching key-value pairs to scope state using ASP.NET Core

    In this post I describe a small extension method that makes logging scopes as key-value pairs in ASP.NET Core with Serilog and Seq a little nicer.…

     in  ASP.NET CoreASP.NET Core 2.0Logging
  5. Banner image for How to include scopes when logging exceptions in ASP.NET Core

    How to include scopes when logging exceptions in ASP.NET Core

    In this post I introduce the concept of scopes in ASP.NET Core, how exceptions can cause you to lose a scope, and how to get round this using a neat trick.…

     in  ASP.NET Core 2.0ASP.NET CoreLogging
  6. Banner image for Creating a rolling file logging provider for ASP.NET Core 2.0

    Creating a rolling file logging provider for ASP.NET Core 2.0

    In this post I'll show how to create an ILoggingProvider for ASP.NET Core that writes logs to the file system, based on the Azure App Service provider.…

     in  ASP.NET CoreASP.NET Core 2.0Logging
  7. Banner image for Defining custom logging messages with LoggerMessage.Define in ASP.NET Core

    Defining custom logging messages with LoggerMessage.Define in ASP.NET Core

    In this post I take a look at one of the helper methods in the ASP.NET Core logging library, and how you can use it to efficiently log messages in your app…

     in  ASP.NET CoreLogging
  8. Banner image for Logging using DiagnosticSource in ASP.NET Core

    Logging using DiagnosticSource in ASP.NET Core

    Although ILogger is the most common, there are actually three logging system in ASP.NET Core. In this post I show how to use the DiagnosticSource system…

Andrew Lock | .Net Escapades
Want an email when
there's new posts?