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

Allow JSON log formatter #4309

Open
ramonsmits opened this issue Jul 12, 2024 · 1 comment
Open

Allow JSON log formatter #4309

ramonsmits opened this issue Jul 12, 2024 · 1 comment
Labels

Comments

@ramonsmits
Copy link
Member

Describe the feature.

The console log output isn't ideal as many log entries are multi-line and cannot easily be ingested and keep context.

Describe the requested feature

Microsoft.Extensions.Logging also allows enabling the JSON formatter:

JSON formatter allows for a structured format that is supported by many (cloud) environments.

Additional Context

Required on the forum at https://discuss.particular.net/t/servicecontrol-on-linux-containers-early-access-questions/4000/12?u=ramonsmits

any thought to enabling the option to output the logs as structured json format? this would make the logs easier to consume in cloud-based environments

@ramonsmits
Copy link
Member Author

Enabling JSON output is low-effort to add but these log entries but as ServiceControl logging and more important NServiceBus and transport packages not yet use semantic logging log output isn't yet optimal until the following is also done:

Still, already enabling JSON output definitely will help many users without it.

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

No branches or pull requests

1 participant