ron
ron

Reputation: 625

Tracing in MVC web API Application

I'm looking for a good framework for tracing activities in asp.net MVC. I've implemented registration to action filters with in ActionFilterAttribute. But I want to have see all activities like WCF tracing offers. Since the operation is posting to service , I want it to be traced to file like tracing in WCF.

10x, Rony

Upvotes: 5

Views: 7196

Answers (3)

thangchung
thangchung

Reputation: 2030

Trying Elmah for trace your logs.

Upvotes: 3

ron
ron

Reputation: 625

For now I found a nice thing.

<system.diagnostics>
    <trace autoflush="true">
      <listeners>
        <add name="textLogListener" type="System.Diagnostics.TextWriterTraceListener"
             initializeData="app.log"  />
        <remove name="Default" />
      </listeners>
    </trace>
  </system.diagnostics>

Upvotes: 4

James Lawruk
James Lawruk

Reputation: 31345

Check out Glimpse. Glimpse is an easy way to view tracing activities.

Upvotes: 3

Related Questions