To add a custom logger, create a class and implement the IRewriteLogger interface. In most cases, you will create an adapter around an existing logging framework such as log4net or the Enterprise Library.

When you have created your custom logger class, register the class in your <rewriter> configuration:

<register logger="YourLoggerClass, YourNamespace" />