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

fix: Ensure proper JSON formatting for log files #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

omerkaptan
Copy link

The reason for this change is to address situations where JSON-formatted logs were not being written to the file in a proper JSON format. The modified function is designed to tackle this issue by introducing the "logstyle" property. If "logstyle" is set to JSON, the data is first appended to a JSON array, ensuring that this array adheres to a proper JSON format, and then the updated JSON array is written to the file. This improvement ensures that logs in JSON format are stored in a more structured and readable manner.

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

Successfully merging this pull request may close these issues.

1 participant