InfoPath Logging Stsadm Commands

I sometimes need to change the diagnostic logging levels temporarily to debug InfoPath Web Forms.  I’ve created this  batch commands you help you do that quickly.  These commands I’ve used on MOSS.

Save how the current diagnostic levels are set on your server

You should do this before you begin.

stsadm -o listlogginglevels

Set the trace levels to verbose

stsadm -o setlogginglevel -category "Forms Services Administration" -tracelevel verbose
stsadm -o setlogginglevel -category "Forms Services Conversion and Deployment" -tracelevel verbose
stsadm -o setlogginglevel -category "Forms Services Data Binding" -tracelevel verbose
stsadm -o setlogginglevel -category "Forms Services Data Objects" -tracelevel verbose
stsadm -o setlogginglevel -category "Forms Services Deployment" -tracelevel verbose
stsadm -o setlogginglevel -category "Forms Services File Open" -tracelevel verbose
stsadm -o setlogginglevel -category "Forms Services Object Model" -tracelevel verbose
stsadm -o setlogginglevel -category "Forms Services Rendering" -tracelevel verbose
stsadm -o setlogginglevel -category "Forms Services Runtime" -tracelevel verbose
stsadm -o setlogginglevel -category "Forms Services Runtime - Business Logic" -tracelevel verbose
stsadm -o setlogginglevel -category "Forms Services Runtime - Data Connections" -tracelevel verbose
stsadm -o setlogginglevel -category "Forms Services Runtime - Session State" -tracelevel verbose
stsadm -o setlogginglevel -category "Forms Services Validation" -tracelevel verbose

Set the trace levels to medium (normal setting)

stsadm -o setlogginglevel -category "Forms Services Administration" -tracelevel medium
stsadm -o setlogginglevel -category "Forms Services Conversion and Deployment" -tracelevel medium
stsadm -o setlogginglevel -category "Forms Services Data Binding" -tracelevel medium
stsadm -o setlogginglevel -category "Forms Services Data Objects" -tracelevel medium
stsadm -o setlogginglevel -category "Forms Services Deployment" -tracelevel medium
stsadm -o setlogginglevel -category "Forms Services File Open" -tracelevel medium
stsadm -o setlogginglevel -category "Forms Services Object Model" -tracelevel medium
stsadm -o setlogginglevel -category "Forms Services Rendering" -tracelevel medium
stsadm -o setlogginglevel -category "Forms Services Runtime" -tracelevel medium
stsadm -o setlogginglevel -category "Forms Services Runtime - Business Logic" -tracelevel medium
stsadm -o setlogginglevel -category "Forms Services Runtime - Data Connections" -tracelevel medium
stsadm -o setlogginglevel -category "Forms Services Runtime - Session State" -tracelevel medium
stsadm -o setlogginglevel -category "Forms Services Validation" -tracelevel medium

The commands only change the trace levels.  I’m using a tool to monitor trace logs called ulsviewer.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s