-
Notifications
You must be signed in to change notification settings - Fork 49
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
Enhancement: Add environment variable to set the kpm output information level. #124
Comments
Hey @Peefy, |
@zong-zhe Line 56 in 194168a
so, Is my thought process correct ? /cc @Peefy |
Hi @AkashKumar7902 [The logWritter](https://github.com/kcl-lang/kpm/blob/b197e0b33e4c34d3ec44283bc768014f903ac9c6/pkg/client/client.go#L34) Therefore, you can create a custom structure and implement the And ignore this, it will be deprecated.
|
Enhancement
kpm
needs to increase the output information content to facilitate debugging and problem positioning, for users, some content needs to be disabled to optimize the user experience. Therefore, a switch is needed to adjust the content of the output information.1. Add an environment variable
Set the environment variable
KPM_LOG_LEVEL=debug
, to show more details for debugging.Set the environment variable
KPM_LOG_LEVEL=info
, to show normal message for users.By default,
KPM_LOG_LEVEL=info
.More details mainly includes some raw error information returned by library functions.
2. For future docs.
In the future design documents about displaying information, the label
<debug_info>
will be used to represent some uncontrollable information returned by third-party library functions.The text was updated successfully, but these errors were encountered: