Windows
Open an elevated command prompt
To enable RAS logging, run the command: netsh ras diagnostics set rastracing * enabled
To disable RAS logging, run the command: netsh ras diagnostics set rastracing * disabled


The trace logs are created and available at %WINDIR%\tracing folder

DotRas
To enable DotRas logging, you'll need to add a source named "DotRas" to your app.config file.

<system.diagnostics>
    <trace autoflush="true"/>
    <sources>
      <source name="DotRas" switchValue="Verbose">
        <listeners>
          <clear/>
          <add name="File" type="System.Diagnostics.TextWriterTraceListener" initializeData="DotRas.log"/>
        </listeners>
      </source>
    </sources>
  </system.diagnostics>

This will output a file in your execution folder named DotRas.log that will contain the trace information provided by DotRas from internal calls.

Last edited Jun 21, 2013 at 2:50 AM by jeff_winn, version 2

Comments

No comments yet.