Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample does not work #13

Open
win32nipuh opened this issue Jan 22, 2015 · 0 comments
Open

Sample does not work #13

win32nipuh opened this issue Jan 22, 2015 · 0 comments

Comments

@win32nipuh
Copy link

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();
    });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant