DotNetNuke module to live monitor log4net logs.
- 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.
- 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" />
- Requires DotNetNuke 7.0.6. Simply because I didn't change the reference to something older. Incentive to be on the latest release.
- Automatically add appender to
DotNetNuke.log4net.config
- Counting recurring messages.
- Look into security issues.
Thanks to Chris Fulstow and his log4net.SignalR project for giving me the idea.