Assertfail

All Posts assertfail

View the Blog on GitHub wallymathieu

Logging for Commerce Server 2009

08 Feb 2011

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.

Tags

  • commerce_server
  • log
  • Comments or errors? Fork post and do a pull request on github