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