Skip to content

Message template is not updated while property renaming #103

@mishamyte

Description

@mishamyte

Which version of Serilog.Sinks.Grafana.Loki are you using?

v8.0.0-beta.0

Which version of .NET are you using?

net6.0

Describe the bug

New feature, that adds a level as a property fixes the collision with naming, but the MessageTemplate is not updated and rendered output is broken

To Reproduce

_logger.LogInformation("Hero's {level}", 42);

Expected behavior

Templated should be consistent with renamed properties names

Log/SelfLog output or exception with stacktrace

No response

Application or code sample, which could be used to reproduce a bug

No response

Additional context

image

I have read the documentation

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions