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

Feature Request: Output Dapr logs in JSON format #1091

Open
dmlundeby opened this issue Feb 19, 2024 · 0 comments
Open

Feature Request: Output Dapr logs in JSON format #1091

dmlundeby opened this issue Feb 19, 2024 · 0 comments
Labels
enhancement New feature or request Needs: triage 🔍 Pending a first pass to read, tag, and assign

Comments

@dmlundeby
Copy link

Is your feature request related to a problem? Please describe.
Currently, Dapr logs are outputted as space-separated strings, such as time="2024-02-19T22:55:48.31373384Z" level=info msg="Example message". This is inconvenient to parse, and it is also inconsistent with my application logs which I am able to output as JSON.

Describe the solution you'd like.
I'd like an option to output Dapr logs in JSON format.

Describe alternatives you've considered.
Currently, I'm working around this issue by parsing the space-separated string, which is suboptimal.

Additional context.
Using the Dapr runtime directly, we can enable JSON output using the argument --log-as-json (link).

If this is already possible, please let me know.

@dmlundeby dmlundeby added the enhancement New feature or request label Feb 19, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: triage 🔍 Pending a first pass to read, tag, and assign label Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Needs: triage 🔍 Pending a first pass to read, tag, and assign
Projects
None yet
Development

No branches or pull requests

1 participant