Skip to content

Files

Latest commit

70ad7a5 · Dec 2, 2021

History

History
This branch is 1 commit ahead of, 5 commits behind master.

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 1, 2018
Oct 1, 2018
Dec 2, 2021
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.