Class ExtractorLogger


  • public final class ExtractorLogger
    extends java.lang.Object
    Logging class for outputting logs from the extractor to the desired output

    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)
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void d​(java.lang.String tag, java.lang.String msg)  
      static void d​(java.lang.String tag, java.lang.String template, java.lang.Object... args)  
      static void d​(java.lang.String tag, java.lang.String msg, java.lang.Throwable t)  
      static void d​(java.lang.String tag, java.lang.Throwable t, java.lang.String template, java.lang.Object... args)  
      static void e​(java.lang.String tag, java.lang.String msg)  
      static void e​(java.lang.String tag, java.lang.String template, java.lang.Object... args)  
      static void e​(java.lang.String tag, java.lang.String msg, java.lang.Throwable t)  
      static void e​(java.lang.String tag, java.lang.Throwable t, java.lang.String template, java.lang.Object... args)  
      static void setLogger​(Logger customLogger)
      Set the Logger that you want the extractor logs to be logged to
      Provide an implementation of the Logger interface for each method and whenever the extractor code calls ExtractorLogger.d/w/e it will be routed through to customLogger

      For NewPipe, this should be set at the start of the application ideally in MainActivity.onCreate, but absolutely before any extractor code can run
      static void w​(java.lang.String tag, java.lang.String msg)  
      static void w​(java.lang.String tag, java.lang.String template, java.lang.Object... args)  
      static void w​(java.lang.String tag, java.lang.String msg, java.lang.Throwable t)  
      static void w​(java.lang.String tag, java.lang.Throwable t, java.lang.String template, java.lang.Object... args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setLogger

        public static void setLogger​(Logger customLogger)
        Set the Logger that you want the extractor logs to be logged to
        Provide an implementation of the Logger interface for each method and whenever the extractor code calls ExtractorLogger.d/w/e it will be routed through to customLogger

        For NewPipe, this should be set at the start of the application ideally in MainActivity.onCreate, but absolutely before any extractor code can run
      • d

        public static void d​(java.lang.String tag,
                             java.lang.String msg)
      • d

        public static void d​(java.lang.String tag,
                             java.lang.String msg,
                             java.lang.Throwable t)
      • d

        public static void d​(java.lang.String tag,
                             java.lang.String template,
                             java.lang.Object... args)
      • d

        public static void d​(java.lang.String tag,
                             java.lang.Throwable t,
                             java.lang.String template,
                             java.lang.Object... args)
      • w

        public static void w​(java.lang.String tag,
                             java.lang.String msg)
      • w

        public static void w​(java.lang.String tag,
                             java.lang.String msg,
                             java.lang.Throwable t)
      • w

        public static void w​(java.lang.String tag,
                             java.lang.String template,
                             java.lang.Object... args)
      • w

        public static void w​(java.lang.String tag,
                             java.lang.Throwable t,
                             java.lang.String template,
                             java.lang.Object... args)
      • e

        public static void e​(java.lang.String tag,
                             java.lang.String msg)
      • e

        public static void e​(java.lang.String tag,
                             java.lang.String msg,
                             java.lang.Throwable t)
      • e

        public static void e​(java.lang.String tag,
                             java.lang.String template,
                             java.lang.Object... args)
      • e

        public static void e​(java.lang.String tag,
                             java.lang.Throwable t,
                             java.lang.String template,
                             java.lang.Object... args)