PostSharp4.3/Standard Patterns/Logging

The Diagnostics Pattern Library enables you to configure where logging should be performed and to keep your log entries in sync as you add, remove and refactor your codebase. Currently, the library provides a single aspect: LogAttribute.

In this chapter



Walkthrough: Adding Detailed Tracing to a Code Base

This article shows how to add detailed logging to your application.

Walkthrough: Tracing Parameter Values Upon Exception

This article describes how to log parameter values when a method fails with an exception.

Walkthrough: Customizing Logging

This article shows how to customize the logging settings, such as the severity level or whether parameter values should be included.

Walkthrough: Changing the Logging Back-End

This article shows how to switch to a different back-end after you have chosen a first one.

See Also