Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support rendering and display of incoming message templates with complex placeholders #2240

Open
nblumhardt opened this issue Jul 26, 2024 · 0 comments
Milestone

Comments

@nblumhardt
Copy link
Member

nblumhardt commented Jul 26, 2024

Using its experimental support for dotted property names, Serilog can accept:

Log.Information("Hello, {user.salutation} {user.name}", "Dr.", "Zoidberg");

And the Seq sink will convert the dotted names into structures, e.g. {user: {salutation: 'Dr.', name: 'Zoidberg'}}.

Seq 2024.3 only supports the https://messagetemplates.org spec, so when these messages are ingested into Seq, the message template is not rendered correctly into a message, and the Events screen does not show the event in the desired format.

Assuming dotted names move forward in Serilog, Seq should accept and handle these reliably. Note that this needs to take into account how existing apps/plug-ins will deal with this data.

See also serilog/serilog#2063, datalust/serilog-sinks-seq#223

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant