mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
feat: add git commit hash to Serilog context
This commit is contained in:
parent
2e387ecee9
commit
c38ca2e7fa
4 changed files with 9 additions and 6 deletions
|
|
@ -52,6 +52,7 @@ public class LoggingModule: Module
|
|||
|
||||
var logCfg = _cfg
|
||||
.Enrich.FromLogContext()
|
||||
.Enrich.WithProperty("GitCommitHash", BuildInfoService.FullVersion)
|
||||
.ConfigureForNodaTime(DateTimeZoneProviders.Tzdb)
|
||||
.Enrich.WithProperty("Component", _component)
|
||||
.MinimumLevel.Is(config.ConsoleLogLevel)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue