• Stars
    star
    151
  • Rank 245,081 (Top 5 %)
  • Language
    C#
  • License
    Other
  • Created over 4 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

.NET logging to Notepad

Notepad.Extensions.Logging

NuGet

This is a library for .NET / .NET Core to log your program's output to a handy Notepad window!

Installation

To use:

  1. Add a package reference to Notepad.Extensions.Logging.
  2. In Startup.cs, call AddNotepad(), like so:
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
    services.AddControllersWithViews();
    
    // ...
    
    services.AddLogging(lb => lb.AddNotepad()); // This is where the magic happens
}
  1. Open a new Notepad, Notepad++, or Notepad2 window.
  2. Run your application.

Source Material

Inspired by this tweet: