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]: Structured logging via JSON #3991

Open
robertkiel opened this issue Dec 10, 2024 · 3 comments
Open

[Feature Request]: Structured logging via JSON #3991

robertkiel opened this issue Dec 10, 2024 · 3 comments
Labels
enhancement New feature or request external Issues created by non node team members

Comments

@robertkiel
Copy link

robertkiel commented Dec 10, 2024

Implementation ideas

To ease (automatic) monitoring of Celestia nodes, it would be great to have structured log outputs, for rereference see Reth config that allows multiple log frontends, including JSON.

Instead of logging

infosampled header { type: 'recent', height: 23, ... }

why not log

{
    "kind": "info"
    {
        "description": "sampled header",
        "inner": {
            "type": "recent",
            "height": 23
        }
    }
}
@robertkiel robertkiel added the enhancement New feature or request label Dec 10, 2024
@github-actions github-actions bot added the external Issues created by non node team members label Dec 10, 2024
@elielnfinic
Copy link

Can I work on this?

@Wondertan
Copy link
Member

Hey @robertkiel, this is already possible but has yet to be documented: GOLOG_LOG_FMT=json
Please try and tell if it works for you

@elielnfinic
Copy link

I see that it's an external feature request. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request external Issues created by non node team members
Projects
None yet
Development

No branches or pull requests

3 participants