Microsoft KB Archive/296245

= How To Enable Pipeline Logging in Commerce Server =

Article ID: 296245

Article Last Modified on 7/1/2004

-

APPLIES TO


 * Microsoft Commerce Server 2002 Standard Edition
 * Microsoft Commerce Server 2000 Standard Edition

-



This article was previously published under Q296245



SUMMARY
To assist with the development or troubleshooting of a pipeline, you can enable pipeline logging to view information being processed.



MORE INFORMATION
The following procedure shows how to enable pipeline logging within a Commerce Server site. This article assumes that you are using either a Commerce Server solution site or a site that was developed referencing one of the solution sites.

NOTE: If you use pipeline logging to debug a pipeline, be aware that sensitive information may appear in clear text in the log files. Make sure that you secure the folder that contains these pipeline log files (by default, the \Pipeline\Logfiles folder in the application).

NOTE: For Microsoft .NET based solution sites (like Retail2002 in Commerce Server 2002), the pipeline configuration is done in web.config. For more information, see the Commerce Server 2002 product documentation.
 * 1) Determine if the site is running in development or production mode. To do so, examine the MSCSEnv parameter in the Global.asa file that is located at the root of the site.
 * 2) Open the Global_siteconfig_lib.asp file in an editor. This file is located in the Include folder of the site.
 * 3) Locate the InitSitePipelines procedure. There will be two &quot;MSCSEnv =&quot; statements. Below the appropriate (development or production) &quot;MSCSEnv =&quot; statement, change the &quot;dictPipeline.LoggingEnabled = False&quot; statement to &quot;dictPipeline.LoggingEnabled = True&quot;.
 * 4) Save your changes.
 * 5) Next, either:
 * 6) * Perform an IISReset command (point to Start, click Run, type IISReset, and press ENTER).

-or-
 * 1) * Unload the application through the Microsoft Internet Information Server snap-in.

NOTE: You must ensure that the Internet Guest Account (IUSR_ ) has write access to the \Pipeline\Logfiles folder.

To disable pipeline logging:

Modify the appropriate line in the Global_siteconfig_lib.asp file to &quot;dictPipeline.LoggingEnabled = False&quot; and perform either an IISReset or application unload.

