Class ExtractorLogger
java.lang.Object
org.schabi.newpipe.extractor.utils.ExtractorLogger
Logging class for outputting logs from the extractor to the desired output
Intended to be used in the same manner as Android's
Also supports formatted arguments:
Intended to be used in the same manner as Android's
Log:ExtractorLogger.d("Hello my name Jeff")Also supports formatted arguments:
ExtractorLogger.d("Hello my name is {Name} {}", name, surname)-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic enum -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidSet the Logger that you want the extractor logs to be logged to
Provide an implementation of theLoggerinterface for each method and whenever the extractor code callsExtractorLogger.d/w/eit will be routed through tocustomLogger
For NewPipe, this should be set at the start of the application ideally inMainActivity.onCreate, but absolutely before any extractor code can runstatic voidstatic voidstatic voidstatic void
-
Method Details
-
setLogger
Set the Logger that you want the extractor logs to be logged to
Provide an implementation of theLoggerinterface for each method and whenever the extractor code callsExtractorLogger.d/w/eit will be routed through tocustomLogger
For NewPipe, this should be set at the start of the application ideally inMainActivity.onCreate, but absolutely before any extractor code can run -
d
-
d
-
d
-
d
-
w
-
w
-
w
-
w
-
e
-
e
-
e
-
e
-