lavspent / Lavspent.BrowserLogger

MIT License
8 stars 2 forks source link
browser core ilogger iloggerprovider logger logging net websocket

Lavspent.BrowserLogger Build Status

What?!

Let you use your browser as a log target from any Asp.Net Core application.

How?!

Install:
install-package Lavspent.BrowserLogger
In your code:
public void ConfigureServices(IServiceCollection services)
{
    // ...
    services.AddBrowserLogger();
    services.Configure<BrowserLoggerOptions>(Configuration.GetSection("Logging"));
}
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
    // ...
    app.UseWebSockets();
    app.UseBrowserLogger();
}
In your browser:
http://localhost:5000/console