-
Notifications
You must be signed in to change notification settings - Fork 181
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
Consistent logging through the project #786
Comments
The Developers who are looking for an |
FYI: For consistent logging as an CLI executable, there is an existing issue: #638 |
The mentioned situations cover totally different user scenarios. The former is targeted on stderr output for correlated http tracing, the latter focuses on timely status logging to stdout and might be extended to one-time structured output or maybe CLI progress bars if stdout is a terminal. |
Well, there is logging and there is output. I think the logging should all be routed to stderr like errors, debug output and verbose output. And then there is display output like you'd get from |
@TerryHowe Are you suggesting that you found some current output that should be replaced with logs?
Are you suggesting the preview warning should not be managed by cc @FeynmanZhou |
From the call maybe we need to break this out into specific issues @TerryHowe |
Done. |
What is the version of your ORAS CLI
0.16.0
What would you like to be added?
Currently the project includes logrus which is fine, but logging is inconsistent and does not show the best separation of concerns. Ideally, this code should be capable of being used as an CLI executable and a go module.
--debug
and--verbose
, but it should not know about those command line optionsReference current situation:
Why is this needed for ORAS?
Make the code more usable by other projects.
Are you willing to submit PRs to contribute to this feature?
The text was updated successfully, but these errors were encountered: