Skip to content

Implement proper Log Levels and support Structured Logging capabilities #1923

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

Open
aldoborrero opened this issue Mar 26, 2025 · 4 comments
Open

Comments

@aldoborrero
Copy link
Contributor

I've been working with the digger codebase recently and noticed that all log statements use Println rather than appropriate log levels. This approach can result in excessive logging output in some scenarios.

Currently, the backend CLI doesn't provide options for:

  • Setting log levels
  • Configuring log formats (e.g., structured logging)

Are there any plans to introduce more sophisticated logging solutions like zerolog or Go's built-in slog? This would allow for better log filtering and improved troubleshooting capabilities, especially in production environments.

Happy to discuss this further or contribute to implementation if there's interest (I started working on it on a branch).

@motatoes
Copy link
Contributor

Hi @aldoborrero ! Thanks for creating this issue. You are right its on our todo list to add support for log levels and configurable formats, I'm super happy to accept contributions in this area so if you have a WIP or partial implementation of some statement that you would like to contribute we'd love to get those reviewed! Many thanks for considering contributing to our project!

@aldoborrero
Copy link
Contributor Author

@motatoes I added PR #1927 as the initial work to gather feedback and thoughts from you!

@motatoes
Copy link
Contributor

Hi @aldoborrero before I forget I'm not sure if we are able to accept contributions to the ee/ folder therefore if you could hold off on any changes to that codebase it would be appreciated since I might have to contribute themselves due to some legal implications

@ludov04
Copy link
Contributor

ludov04 commented Apr 4, 2025

How do I select log level using env vars? Any way to do that? Trying to debug something and the debug logs would be useful

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

3 participants