Giter VIP home page Giter VIP logo

dotnetnuke-realtimelogwatcher's Introduction

DotNetNuke-RealTimeLogWatcher

DotNetNuke module to live monitor log4net logs.

How it works

  • Uses a custom log4net appender to send out messages through SignalR
  • Enables you to pause the incoming messages to more closely inspect them.
  • Clicking on a row will save it to a saved log section where it will stay until the page is refreshed or you click to remove it.
  • You may change the number of log messages that are displayed at one time.
  • You can clear the list of log messages at any time.
  • Entries are color coded by their log level.

Installation

  • Install like any other module and add to a admin page.
  • Add custom appender to your DotNetNuke.log4net.config found in the root of your DotNetNuke website.
	<appender name="SignalrAppender" type="InspectorIT.RealTimeLogWatcher.Components.SignalrAppender, InspectorIT.RealTimeLogWatcher">
		<layout type="log4net.Layout.PatternLayout">
			<conversionPattern value="%date %-5level - %message%newline" />
		</layout>
	</appender>
	<root>
		<level value="ALL" />
		<appender-ref ref="RollingFile" />
		<appender-ref ref="SignalrAppender"/>
	</root>

Note: If you set your root log level to ALL you'll want to add the following to your RollingFile so it doesn't fill up with trace messages.

<param name="Threshold" value="ERROR" />

Requirements

  • Requires DotNetNuke 7.0.6. Simply because I didn't change the reference to something older. Incentive to be on the latest release.

Roadmap

  • Automatically add appender to DotNetNuke.log4net.config
  • Counting recurring messages.
  • Look into security issues.

Special Thanks

Thanks to Chris Fulstow and his log4net.SignalR project for giving me the idea.

Fun Facts

  • Uses AngularJS for the client side UI. Includes the new ng-animate directive to animate the log messages in and out of the table.
  • Uses SignalR Hubs to pass messages to the client in real time.

Screenshot

ScreenShot

dotnetnuke-realtimelogwatcher's People

Contributors

jsheely avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jsheely

dotnetnuke-realtimelogwatcher's Issues

404 not found

Hi @jsheely,

I'm getting a 404 on /signalr/hubs. What dependency am I missing and how exactly should that be installed?

yea, it doesn't work.

Just so you know, this project doesn't work anymore, under it's current availability. Perhaps others had better luck installing it?

  • I had to upgrade the Owin and SignalR systems to their latest versions via nuget, and fix references
  • Update the view to use the new Startup class in 2.0+
  • remove the JQueryUI registration which is automatic now
  • As well as fix a large handful of linkage issues (web.config, packages.config, .aspx files, and Buildscripts).
  • The web.config had to be removed, and implemented properly in the .dnn configuration.
  • The newtonsoft needed an upgrade install/uninstall handler.
  • And the Main.js and Main.aspx needed updated to support the new libraries being used.
  • The new libraries require explicit angular.controller specification, and the ng-repeat needs a track index.
  • Finally, the module.css specifies a display:none for all table cell elements. Not sure why this was there, it hides all the information (lol?). Perhaps the older version of things automatically showed new table entries as they were added....

After fixing all of that, here is a WORKING project, for DNN v7.3.4. Enjoy :)
https://drive.google.com/file/d/0B_7bMpZRosonelFFVW53UXFDb0U/view?usp=sharing

If someone with git access wants to submit a .diff or something feel free. I don't want credit, however I do feel that someone should update the project files in that way. Very few people visiting the main hub page, will actually see this post.

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.