Skip to content

Files

Latest commit

e32530e · Feb 23, 2024

History

History

PostSharp.Samples.Logging.Customization

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Nov 6, 2017
Feb 25, 2019
Jun 4, 2019
Jun 4, 2019
Nov 6, 2017
Feb 23, 2024
Jun 4, 2019
Mar 4, 2019
Nov 6, 2017

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