asp.net - Tracing web service calls -


here outline of technologies using our project @ work :

-asp.net mvc 4 -visual studio 2012 , visual studio 2010 -entity framework version 4 -umbraco 6.1.6

we invoking web services api belonging third-party company.

in order ensure debugging , troubleshooting made easier, want our application create details log trace of calls third-party web service api. vaguely recall previous place of work there way setup kind of configuration in asp.net web.config log trace calls web services api text file.

what configuration changes need make?

you might need reconfigure system specific data in following xml, place in asp.net web.config, , should create log files showing how application invokes/calls web services

<system.codedom> <compilers>   <compiler language="c#;cs;csharp" extension=".cs"  type="microsoft.csharp.csharpcodeprovider,system, version=2.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089" warninglevel="1">     <provideroption name="compilerversion" value="v4.0" />     <provideroption name="warnaserror" value="false" />   </compiler> </compilers> </system.codedom>    <system.diagnostics>  <trace autoflush="true" />  <sources>   <source name="system.net" maxdatasize="1024">     <listeners>       <add name="mytracefile"/>       <add name="myconsole"/>     </listeners>   </source> </sources>  <sharedlisteners>   <!-- initializedata="system.net.trace.log" -->   <!-- type="system.diagnostics.textwritertracelistener" -->   <!--  type="system.diagnostics.xmlwritertracelistener" -->   <add     name="mytracefile"      type="system.diagnostics.textwritertracelistener"        initializedata="d:\log\trace.log"     />     <add name="myconsole" type="system.diagnostics.consoletracelistener" /> </sharedlisteners>  <switches>   <add name="system.net" value="verbose" />   <!--            <add name="system.net" value="verbose" />--> </switches>    </system.diagnostics> 

Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -