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:

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

  • Upgrade all PostSharp packages.

  • Add the package for your back-end 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 Logging.

  • Migrate the logging profiles to the new format as described in Logging. 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.