Skip to content

collector-bank/serilog-enrichers-author

Repository files navigation

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();

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages