-
-
Notifications
You must be signed in to change notification settings - Fork 500
Add logging to extractor #1403
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
Open
absurdlylongusername
wants to merge
3
commits into
TeamNewPipe:dev
Choose a base branch
from
absurdlylongusername:add-extractor-logging
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add logging to extractor #1403
absurdlylongusername
wants to merge
3
commits into
TeamNewPipe:dev
from
absurdlylongusername:add-extractor-logging
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set ConsoleLogger globally for all tests
79a16cb to
5ec7581
Compare
Add string formatting to logger Add tests for logger formatting
5ec7581 to
25b04f2
Compare
5 tasks
3 tasks
TobiGr
reviewed
Nov 28, 2025
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, we should however add some documentation
- to the ExtractorLogger class
- on how to set the logger
- somehwere on how to disable the JUnit logger extension
| @@ -0,0 +1,193 @@ | |||
| package org.schabi.newpipe.extractor.utils; | |||
|
|
|||
| public final class ExtractorLogger { | |||
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few lines of class doc would be good to have here.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
codequality
Improvements to the codebase to improve the code quality
tests
Issues and PR related to unit tests
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a logging API to the Extractor.
By default it logs nothing, and users of the extractor can use setLogger to define where logs are written.
Uses ConsoleLogger for all tests by default using JUnit 5 extensions
Added some initial logs to some places.
Related PR: #1325