enable tracing in prod environment

Posts   
 
    
nmarun
User
Posts: 27
Joined: 31-Jul-2006
# Posted on: 06-Sep-2007 01:27:20   

Hi,

I'm working on an asp.net web application (.net 2.0) and something 'spooky' is happening when I deploy it onto prod. When I'm debugging on local, I have some switches added so I can see the actual SQL command being sent to the SQL Server in the Output window. Below are the switches I've added:

<system.diagnostics> <switches> <add name="SqlServerDQE" value="4"/> <add name="ORMGeneral" value="4"/> <add name="ORMStateManagement" value="4"/> <add name="ORMPersistenceExecution" value="4"/> </switches> </system.diagnostics>

Now how do I modify the app or the web.config file so that all these statements are written to a text file after I deploy the app to prod or I'm wanting to see my application log all these statements even in prod.

The following did NOT help:

<system.web> <trace enabled="true" /> </system.web>

Please let me know. Arun

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 06-Sep-2007 04:49:32   
David Elizondo | LLBLGen Support Team