This is the online documentation for PostSharp 5.0.
Download PDF or CHM. Go to v4.3 or v5.0

Upgrading from PostSharp Diagnostics 4.3

PostSharp Logging has been completely rewritten between PostSharp 4.3 and PostSharp 5.0. There are some significant breaking changes that you will need to take into account.

To migrate your logging from a previous version of PostSharp:

  1. Uninstall all PostSharp.Patterns.Diagnostics.* packages except PostSharp.Patterns.Diagnostics itself

  2. Upgrade all PostSharp packages.

  3. Add the package for your backend logging framework to the start-up project (instead of adding it to all projects prior to PostSharp 5.0) and configure it at run-time as described in Adding Detailed Logging to your Solution.

  4. Migrate the logging profiles to the new format as described in Adding Detailed Logging to your Solution. Some options that used to be accessible from logging profiles are now run-time options and are described in Customizing the Appearance of Log Records.