Simple templates to enforce uniform structured logging across projects.
Use the static classes
- GenericLogTemplates
- AspNetCoreLogTemplates
to provide you with the message template and pass the rest of the placeholders in a Logger that supports structured logging. Extension method GetTemplateCode()
can be used to get the hexadecimal number used by Seq complete with the $ prefix.