Class LogUtil

  • All Implemented Interfaces:

    
    public class LogUtil
    
                        

    Prebid logger. Allows to control log level.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public interface LogUtil.PrebidLogger

      Internal interface.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static int NONE
      public final static int VERBOSE
      public final static int DEBUG
      public final static int INFO
      public final static int WARN
      public final static int ERROR
      public final static int ASSERT
      public static int logLevel
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static int getLogLevel()
      static void setLogLevel(int level)
      static void verbose(String message) Prints a message with VERBOSE priority and default BASE_TAG
      static void debug(String message) Prints a message with DEBUG priority and default BASE_TAG
      static void info(String message) Prints a message with INFO priority and default BASE_TAG
      static void warning(String message) Prints a message with WARNING priority and default BASE_TAG
      static void error(String message) Prints a message with ERROR priority and default BASE_TAG
      static void verbose(String tag, String msg) Prints a message with VERBOSE priority.
      static void debug(String tag, String msg) Prints a message with DEBUG priority.
      static void info(String tag, String msg) Prints a message with INFO priority.
      static void warning(String tag, String msg) Prints a message with WARN priority.
      static void error(String tag, String msg) Prints a message with ERROR priority.
      static void wtf(String tag, String msg) Prints a message with ASSERT priority.
      static void error(String tag, String message, Throwable throwable) Prints a message with ERROR priority and exception.
      static void print(int messagePriority, String message) Prints information with set priority.
      static void setLogger(LogUtil.PrebidLogger newLogger)
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • verbose

         static void verbose(String message)

        Prints a message with VERBOSE priority and default BASE_TAG

      • debug

         static void debug(String message)

        Prints a message with DEBUG priority and default BASE_TAG

      • info

         static void info(String message)

        Prints a message with INFO priority and default BASE_TAG

      • warning

         static void warning(String message)

        Prints a message with WARNING priority and default BASE_TAG

      • error

         static void error(String message)

        Prints a message with ERROR priority and default BASE_TAG

      • verbose

         static void verbose(String tag, String msg)

        Prints a message with VERBOSE priority.

      • debug

         static void debug(String tag, String msg)

        Prints a message with DEBUG priority.

      • info

         static void info(String tag, String msg)

        Prints a message with INFO priority.

      • error

         static void error(String tag, String msg)

        Prints a message with ERROR priority.

      • wtf

         static void wtf(String tag, String msg)

        Prints a message with ASSERT priority.

      • print

         static void print(int messagePriority, String message)

        Prints information with set priority.