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

Unable to show log files with only already rendered messages #667

Closed
cn-byn opened this issue Jan 18, 2024 · 1 comment
Closed

Unable to show log files with only already rendered messages #667

cn-byn opened this issue Jan 18, 2024 · 1 comment

Comments

@cn-byn
Copy link

cn-byn commented Jan 18, 2024

The Serilog Compact JSON format can contain either a message template (key @mt) or a rendered message (key @m).

However, Analogy seems to show the logs only if at least one @mt key is present in the whole log file. Then, all the log entries are shown correctly, no matter if @mt or @m is used in the other log entries.

Example log file 1:

{"@t":"2024-01-18T14:15:47.2174246Z","@m":"test","@l":"Debug"}
{"@t":"2024-01-18T14:15:47.2274198Z","@m":"test 2","@l":"Debug"}

Result: Does not show anything in Analogy.

Example log file 2:

{"@t":"2024-01-18T14:15:47.2174246Z","@mt":"test","@l":"Debug"}
{"@t":"2024-01-18T14:15:47.2274198Z","@m":"test 2","@l":"Debug"}

Result: Does show both entries in Analogy correctly.

The only difference between both examples is the @mt instead of @m in the first line.

@LiorBanai
Copy link
Member

@cn-byn Thanks for reporting this. A fix should be easy to implement.

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

No branches or pull requests

2 participants