mirror of
https://github.com/yaakov-h/Notepad.Extensions.Logging.git
synced 2024-10-16 18:10:02 +00:00
914 B
914 B
Notepad.Extensions.Logging
This is a library for .NET / .NET Core to log your program's output to a handy Notepad window!
Installation
To use:
- Add a package reference to Notepad.Extensions.Logging
- In
Startup.cs
, callAddNotepad()
, 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
}
- Open a new Notepad window
Source Material
Inspired by this tweet: