Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (14 sloc) 1.58 KB
layout title date tags
post
Logging for Commerce Server 2009
2011-02-08 21:23:00 +0100
commerce_server log
You might want to start off by reading the documentation from Microsoft. The short version of this text is that in the new CS2009 there is tracing and it is done through system.diagnostics. I don't know the entire story, but it looks like the exception handling is piped through the trace.

So in order to configure the logging for commerce server you will need to read up on the system.diagnostics tracing.You will need to add a source "Microsoft.Commerce.Exceptions". There you can choose your TraceListener and specify the information you need by reading up on TraceOptions.

The default trace configuration can be found in SystemDiagnostics.xml in the Extensibility kit. You should be aware of that the default configuration logs to the Event handler. This is not always appreciated by your customers since they may want to have Medium Trust for the site.

Note that this means that you can also write your own log-handler for these tracing events by inheriting from   TraceListener.