Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
Properties
App.config
CustomLoggingBackend.cs
ExampleFormattable.cs
FancyIntFormatter.cs
PostSharp.Samples.Logging.Customization.csproj
Program.cs
README.md
packages.config
postsharp.config

README.md

This example demonstrates several ways to override the default behavior of PostSharp Logging:

  • A value formatter named FancyIntFormatter, which demonstrates the implementation of the Formatter class.
  • A formattable class named ExampleFormattable, which demonstrates the implementation of the IFormattable interface.
  • A custom backend derived named CustomLoggingBackend which derives from ConsoleLoggingBackend but adds the thread id to the record line and a prefix to the parameter.

Documentation

Implementing a Custom Formatter

Implementing an Adapter to a Custom Logging Framework