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

Is it possible to configure JSON encoder to save log as array of JSON objects? #251

Closed
sw-dev-code opened this issue Apr 20, 2022 · 1 comment
Labels

Comments

@sw-dev-code
Copy link

I would like to have the output file as one JSON array with each log as a JSON object? It would be easier for manipulation instead of having each line as a separate JSON object.

Is there a way to set configuration YAML file in that way?

@estk
Copy link
Owner

estk commented Apr 20, 2022

@sw-dev-code there is not a way to do this, it would require more than append-only access to the file and its something that is out of scope for log4rs.

@estk estk added the question label Apr 20, 2022
@estk estk closed this as completed Apr 22, 2022
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

2 participants