Udostępnij za pośrednictwem


How to Use an Order Log

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

You can create a text log that collects Order Processing pipeline (OPP) information. This log includes all the keys and values written to the OrderForm dictionary by each component in each stage. By creating this log, you see each stage and each component within that stage as it is run. This is especially useful for debugging an OPP. To do this, configure pipeline logging in the Web.config file. For more information about the Web.config file, see Web.Config Configuration Settings.

When you run the pipeline, stage and component information is written to the file that you specify.

Note

For the Orders System to create a log file, you must specify a location in which you have write permission; otherwise, the log file creation will fail without a warning. Also, make sure that you comment out or delete the IPipeline::SetLogFile method after debugging the pipeline. Logging significantly slows down pipeline execution.

In the log file, components are numbered in the order that they are run and listed by name, but are not separated by pipeline stage.

A log file is easier to read if you use a spreadsheet application, such as Microsoft Excel, to view it.

See Also

Other Resources

Orders System Pipelines