diff --git a/sample/Serilog.Sinks.Grafana.Loki.Sample/Program.cs b/sample/Serilog.Sinks.Grafana.Loki.Sample/Program.cs index 2caa5c8..ad9540c 100644 --- a/sample/Serilog.Sinks.Grafana.Loki.Sample/Program.cs +++ b/sample/Serilog.Sinks.Grafana.Loki.Sample/Program.cs @@ -22,7 +22,8 @@ public static void Main(string[] args) "http://localhost:3100", new List { new() { Key = "app", Value = "console" } }, credentials: null, - outputTemplate: OutputTemplate) + outputTemplate: OutputTemplate, + createLevelLabel: true) .CreateLogger(); Log.Debug("This is a debug message"); diff --git a/sample/Serilog.Sinks.Grafana.Loki.SampleWebApp/appsettings.json b/sample/Serilog.Sinks.Grafana.Loki.SampleWebApp/appsettings.json index ca2fea4..68812b9 100644 --- a/sample/Serilog.Sinks.Grafana.Loki.SampleWebApp/appsettings.json +++ b/sample/Serilog.Sinks.Grafana.Loki.SampleWebApp/appsettings.json @@ -31,7 +31,8 @@ "value": "web_app" } ], - "outputTemplate": "[{ThreadId}] [{TraceId:l}] {Message}{NewLine}{Exception}" + "outputTemplate": "[{ThreadId}] [{TraceId:l}] {Message}{NewLine}{Exception}", + "createLevelLabel": true } } ]