Skip to content

A ReflectInsight Extension that receives logged messages from Common.Logging framework

License

Notifications You must be signed in to change notification settings

reflectsoftware/reflectinsight-extensions-commonlogging

Repository files navigation

ReflectInsight-Extensions-CommonLogging

Build Status License Release NuGet Version Stars

Package - ReflectSoftware.Insight.Extensions.CommonLogging | Platforms - .NET 4.5.1 and above

We've added support for the Common.Logging framework. This allows you to leverage your current investment in the Common.Logging framework, but leverage the power and flexibility that comes with the ReflectInsight viewer. You can view your Common.Logging messages in real-time, in a rich viewer that allows you to filter out and search for what really matters to you.

The Common.Logging extension supports Common.Logging v3.3.1. However if you need to support an older version, then you will need to download the ReflectInsight Logging Extensions Library from GitHub. You can then reference and rebuild the extension against a specific release of the Common.Logging.dll that you plan to use.

Getting Started

To install ReflectSoftware.Insight.Extensions.CommonLogging extension, run the following command in the Package Manager Console:

Install-Package ReflectSoftware.Insight.Extensions.CommonLogging

Then add the following configuration to your app/web configuration file:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>        
    <section name="insightSettings" type="ReflectSoftware.Insight.ConfigurationHandler,ReflectSoftware.Insight"/>
    <sectionGroup name="common">
      <section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
    </sectionGroup>
  </configSections>

  <common>
    <logging>
      <factoryAdapter type="ReflectSoftware.Insight.Extensions.CommonLogging.RIFactoryAdapter, ReflectSoftware.Insight.Extensions.CommonLogging">
	<arg key="configType" value="FILE" />
      </factoryAdapter>
    </logging>
  </common>

  <insightSettings>
    <baseSettings>
      <configChange enabled="true"/>      
      <propagateException enabled="false"/>      
      <exceptionEventTracker time="20"/>
      <debugMessageProcess enabled="true"/>
    </baseSettings>

    <listenerGroups active="Active">
      <group name="Active" enabled="true" maskIdentities="false">
        <destinations>
  	  <destination name="Viewer" enabled="true" filter="" details="Viewer"/>
        </destinations>
      </group>
    </listenerGroups>    
  </insightSettings>
</configuration>

Additional configuration details for the ReflectSoftware.Insight.Extensions.CommonLogging logging extension can be found here.

Additional Resources

Documentation

Submit User Feedback

Contact Support

ReflectSoftware Website