GithubHelp home page GithubHelp logo

lavspent.browserlogger's Introduction

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

lavspent.browserlogger's People

Contributors

dependabot[bot] avatar petterlabraaten avatar semack avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lavspent.browserlogger's Issues

Serilog / ILogger

This is very nice idea - was looking exactly for something like that!

How to explicitly do a log? i.e: browserLogger.Debug("This is a log message");

Serilog exposes an ILogger just the same as the built in ILogger instance of dotnetcore.
I have successfully activated BrowserLogger and i see it is connected but though serilog is logging BrowserLogger isnt.

I am thinking maybe a logging middleware with explicit browserLogger logging method can solve my issue.

Long term fix is add a BrowserLogger serilog sink - are you interested in something like that?
Meanwhile if there is no such method (call a log function) would it be possible to add it - thanks :D

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.