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

Support muti-level logger in azd #4570

Open
rujche opened this issue Nov 20, 2024 · 1 comment
Open

Support muti-level logger in azd #4570

rujche opened this issue Nov 20, 2024 · 1 comment

Comments

@rujche
Copy link
Member

rujche commented Nov 20, 2024

For current azd, the logger only has one level: output or not output.

  1. Without "--debug" program parameter, there is no output. Customer will lack necessary information.
  2. WIth "--debug" program parameter, there will be too much (hundreds or even thousands of lines) logs.

It's a reasonable request to support multi-level log in azd. Here are common used levels: info, warn, error.

And I found loggers for go lang:

  1. https://github.com/sirupsen/logrus
  2. https://github.com/uber-go/zap
@ellismg
Copy link
Member

ellismg commented Dec 17, 2024

FYI, In #4635 I am adopting log/slog which is leveled. I used Info as the level everywhere during my conversion, but we could use other levels as well.

I would strongly prefer we use slog instead of taking a dependency on a third-party package.

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