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

JSON or standard logs #1823

Closed
antho1404 opened this issue May 18, 2020 · 1 comment · Fixed by #1831
Closed

JSON or standard logs #1823

antho1404 opened this issue May 18, 2020 · 1 comment · Fixed by #1831
Assignees

Comments

@antho1404
Copy link
Member

Currently, it looks like there is no way to force the logs in a more standard log system like json.

The orchestrator doesn't accept any other type of logs than the plain text and the validator doesn't seem to accept the log_format = "json" in the config.toml.

Current logs are not standard and really hard to parse.

@antho1404 antho1404 changed the title JSON logs JSON or standard logs May 18, 2020
@NicolasMahe
Copy link
Member

Tendermint logger actually has a JSON and fmt version:

log.NewTMLogger()
log.NewTMJSONLogger()
log.NewTMFmtLogger()

https://pkg.go.dev/github.com/tendermint/tendermint@v0.33.3/libs/log?tab=doc

I will try the fmt and JSON version to have something more standard.

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 a pull request may close this issue.

2 participants