Configuring Responder
Using log4net

Version: 10.2.1c and 10.2.1c SP3

Resource Center Home

The <log4net> section of the Responder configuration files allow you to determine the degree of diagnostic messages that appear in a message viewer (such as an event log or Microsoft DebugView).

Within the list of diagnostic message types, there exists the following hierarchy:

Depending on the level selected, those messages - and the level of messages below that - appear in the messaging views. For example, if you select to include warnings, then both errors and fatal messages appear as well. If you select to include errors, then only fatal messages will appear also.

Error logs, and the messages they contain, can be viewed via your computer's event log, or through other applications, such as Microsoft's DebugView (http://download.sysinternals.com/files/DebugView.zip).

When trying to view Responder server-side diagnostics messages using DebugView, you may not see any messages getting logged. The following may help when that occurs:
  • Enable Global Capture by selecting Capture Global Win32 from the Capture menu.
  • Attempt to run DebugView with administrator privileges by right-clicking the DebugView and selecting Run as Administrator.

Configure Messages for a Message Viewer

Look for the following example in a configuration file. By default, these files are installed here: C:\Program Files (x86)\Miner and Miner\Responder\[Client or Server].

Copy Code
  <log4net>
    <appender name="OutputDebugStringAppender" type="log4net.Appender.OutputDebugStringAppender">
      <layout type="log4net.Layout.PatternLayout">
        <param name="ConversionPattern" value="[%t] %-5p %c - %m%n" />
      </layout>
    </appender>
    <appender name="EventLogAppender" type="Miner.EventLogAppender, Miner.System, Version=10.0.0.0, Culture=neutral,PublicKeyToken=196beceb052ed5dc">
      <param name="LogName" value="Miner" />
      <param name="ApplicationName" value="Responder Explorer" />
      <param name="Threshold" value="WARN" />
      <layout type="log4net.Layout.PatternLayout">
        <param name="ConversionPattern" value="%d [%t] %-5p %c [%x] - %m%n" />
      </layout>
    </appender>
...
    <root>
      <level value="WARN" />
      <appender-ref ref="EventLogAppender" />
      <appender-ref ref="OutputDebugStringAppender" />
    </root>
...
    <logger name="Miner.Responder.Shared.Channels.MSMQ">
      <level value="WARN" />
    </logger>
    <logger name="Miner.Responder.PubSub">
      <level value="WARN" />
    </logger>
  </log4net>

After determining which types of messages should be visible in the event log, set the following:

 

 


Send Comment to ArcFMdocumentation@schneider-electric.com