Giter Site home page Giter Site logo

log4net.signalr's People

Contributors

caseyjmorton avatar chrisfulstow avatar genuinefafa avatar scott-xu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

log4net.signalr's Issues

Code Sample in Readme.md

You should probably make a note that if you include log4net.SignalR as an assembly (especially when downloading from NuGet) that the appender element should also include the assembly reference as well like this:

<appender name="SignalrAppender" type="log4net.SignalR.SignalrAppender, log4net.SignalR">

Enhancement to enable connection to remote hub

Please add functionality to allow a standalone process to communicate logging events to a remote instance of the SignalrAppenderHub. This should be enabled by adding an option to the appender called "ProxyUrl". When not present in the log4net configuration, the default functionality of self hosting the hub would apply. When present, the appender should instantiate a proxy hub, pointing to the URL indicated.

The front page documentation should also be update to reflect these changes.

Sample does not work

The problems are here:

$(function() {
var log4net = $.connection.hub;//.signalrAppenderHub;<-------------!!!!

// <------ log4net.client is undef
log4net.client.onLoggedEvent = function(formattedEvent, loggedEvent) {
if (console && console.log)
console.log("onLoggedEvent", formattedEvent, loggedEvent);

        var dtm = new Date(Date.parse(loggedEvent.TimeStamp));
        var dateCell = $("<td>").css("white-space", "nowrap").text(printValue(dtm));
        var levelCell = $("<td>").text(loggedEvent.Level.Name);
        var detailsCell = $("<td>").text(loggedEvent.Message);
        var row = $("<tr>").append(dateCell, levelCell, detailsCell);
        row = row.addClass(convertDebugStyleToBootstrap(loggedEvent.Level.Name.toLowerCase()));
        row.bind("click", formattedEvent, showDetails);
        $('#log-table tbody').append(row);
    };
    $.connection.hub.logging = true;

    $.connection.hub.start(function() {
        log4net.server.listen();
    });

SignalrAppender.Instance is null

I couldn't get this to work in my project so for debugging purposes I copied both the hub and the appender code into my project. However with code below

public SignalrAppenderHub()
 {
    SignalrAppender.Instance.MessageLogged = OnMessageLogged;
}

SignalrAppender.Instance is null

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.