Skip to content

Consistent logging through the project #786

@TerryHowe

Description

@TerryHowe

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.

  • It should have some interface users can implement if they want to use their own logging.
  • It should be initialized with a log level, which I suppose would be dictated by --debug and --verbose, but it should not know about those command line options
  • It should not expose its implementation
  • It should not know about objects related to this project

Reference 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?

  • Yes, I am willing to implement it.

Metadata

Metadata

Labels

enhancementNew feature or requestloggingquestionFurther information is requested

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions