Assertfail

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


Comments

Do you want to send a comment or give me a hint about any issues with a blog post: Open up an issue on GitHub.

Do you want to fix an error or add a comment published on the blog? You can do a fork of this post and do a pull request on github.