Skip to content

refactor: move logger method to command#1355

Merged
TerryHowe merged 4 commits into
oras-project:mainfrom
TerryHowe:logging-refactor
May 3, 2024
Merged

refactor: move logger method to command#1355
TerryHowe merged 4 commits into
oras-project:mainfrom
TerryHowe:logging-refactor

Conversation

@TerryHowe

Copy link
Copy Markdown
Member

What this PR does / why we need it:

I think it makes a lot more sense that a command has-a logger rather than an option.

@TerryHowe TerryHowe changed the title Refactor logging method refactor: Move logger method to command Apr 17, 2024
@codecov

codecov Bot commented Apr 18, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.78%. Comparing base (db85734) to head (a60bf6a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1355   +/-   ##
=======================================
  Coverage   84.77%   84.78%           
=======================================
  Files         104      105    +1     
  Lines        3704     3706    +2     
=======================================
+ Hits         3140     3142    +2     
  Misses        336      336           
  Partials      228      228           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@qweeah qweeah changed the title refactor: Move logger method to command refactor: move logger method to command Apr 19, 2024

@qweeah qweeah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, need to add doc comment for the public function.

Comment thread cmd/oras/internal/command/logger.go
Signed-off-by: Terry Howe <tlhowe@amazon.com>

@qweeah qweeah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TerryHowe TerryHowe merged commit 979dbd7 into oras-project:main May 3, 2024
FeynmanZhou pushed a commit to FeynmanZhou/oras that referenced this pull request May 11, 2024
Signed-off-by: Terry Howe <tlhowe@amazon.com>
Co-authored-by: Billy Zha <jinzha1@microsoft.com>
@TerryHowe TerryHowe deleted the logging-refactor branch September 11, 2025 13:56
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

Successfully merging this pull request may close these issues.

2 participants