Skip to content

Files

Latest commit

ee97c1d · Mar 25, 2024

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 1, 2018
Oct 1, 2018
Mar 25, 2024
Dec 4, 2020
Jun 4, 2019
Oct 3, 2019
Nov 21, 2020
Jan 23, 2019
Jan 23, 2019

PostSharp.Samples.Logging.ElasticStack: ClientExample

This is the client-side of the PostSharp.Samples.Logging.ElasticStack example.

A few interesting points:

  • Serilog is configured to write to the console and to Elastic Search (actually logstash).
  • PostSharp Logging is configured to write to Serilog.
  • The call to HttpClientLogging.Initialize() adds logging to outgoing HTTP requests, but also adds the headers that are required for distributed logging.
  • The top-level custom attribute [assembly: Log] adds logging to every single method in the current project.