/serilog-enrichers-author

Serilog enricher that adds information about the author(s) of the code.

Primary LanguageC#Apache License 2.0Apache-2.0

Build status

serilog-enrichers-author

Includes the serilog enricher AuthorEnricher that will add an "Author" object to each log message. The author object contains four properties:

  • Team (e.g. "Heimdal" or "Ace of Space")
  • Department (e.g. "Payments" or "Solutions")
  • (Optional) ServiceGroup (If this service is part of a larger group of services, then the name of that group, e.g. "Edge" or "Loans")
  • (Optional) Repository (The url to where the source code can be found)

Use it like this:

var logger = new LoggerConfiguration()
                 .Enrich.With(new AuthorEnricher(
                                    teamName: "Heimdal", 
                                    department: "Payments", 
                                    serviceGroup: "Edge",
                                    repositoryUrl: new Uri("https://github.com/collector-bank/serilog-enrichers-author")))
                 .CreateLogger();