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

logging format - write logs in json #2256

Open
dan-catalano-vc opened this issue Nov 6, 2024 · 1 comment
Open

logging format - write logs in json #2256

dan-catalano-vc opened this issue Nov 6, 2024 · 1 comment

Comments

@dan-catalano-vc
Copy link

dan-catalano-vc commented Nov 6, 2024

currently, there is only the ability to write logs in a format that is consumable via the console. ingesting this logging format into a centralized logging system poses multiple challenges. for example:

  • Benefits: JSON-formatted logs improve parsing, filtering, and searching, making it easier to analyze logs in centralized logging systems.

  • Compatibility: Logging frameworks or centralized logging systems e.g., Elasticsearch, Splunk, etc. this feature would support or align with.

  • Flexibility: Toggle between JSON and text format to maintain backward compatibility with current console logging.

  • Structure Requirements: specific fields or structure requirements e.g., timestamps, log levels, error codes to ensure the JSON format aligns with logging system’s ingestion schema.

adding the ability to format/encode logs in json would address these challenges

@hotnodes
Copy link

Hey @dan-catalano-vc, can I work on this one?

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

No branches or pull requests

2 participants