Class OtvAaLog

java.lang.Object
com.nagra.otvaa.sdk.OtvAaLog

public final class OtvAaLog extends Object

Class to control logs produced by the OpenTV Analytics Agent SDK

  • Field Details

  • Method Details

    • v

      public static void v(String tag, String msg)
      Logs a Verbose message.
      Will only log this message if log level is set to 3.
      Parameters:
      tag - String of the tag
      msg - String of the message to output
    • v

      public static void v(String tag, String msg, Throwable tr)
      Logs a Verbose message.
      Will only log this message if log level is set to 3.
      Parameters:
      tag - String of the tag
      msg - String of the message to output
      tr - the RuntimeException throw object
    • d

      public static void d(String tag, String msg)
      Logs a Debug message.
      Will only log this message if log level is set to 2 or higher.
      Parameters:
      tag - String of the tag
      msg - String of the message to output
    • d

      public static void d(String tag, String msg, Throwable tr)
      Logs a Debug message.
      Will only log this message if log level is set to 2 or higher.
      Parameters:
      tag - String of the tag
      msg - String of the message to output
      tr - the RuntimeException throw object
    • i

      public static void i(String tag, String msg)
      Logs an Info message.
      Will only log this message if log level is set to 1 or higher.
      Parameters:
      tag - String of the tag
      msg - String of the message to output
    • i

      public static void i(String tag, String msg, Throwable tr)
      Logs an Info message.
      Will only log this message if log level is set to 1 or higher.
      Parameters:
      tag - String of the tag
      msg - String of the message to output
      tr - the RuntimeException throw object
    • w

      public static void w(String tag, String msg)
      Logs a Warning message.
      Parameters:
      tag - String of the tag
      msg - String of the message to output
    • w

      public static void w(String tag, String msg, Throwable tr)
      Logs a Warning message.
      Parameters:
      tag - String of the tag
      msg - String of the message to output
      tr - the RuntimeException throw object
    • e

      public static void e(String tag, String msg)
      Logs an Error message.
      Parameters:
      tag - String of the tag
      msg - String of the message to output
    • e

      public static void e(String tag, String msg, Throwable tr)
      Logs an Error message.
      Parameters:
      tag - String of the tag
      msg - String of the message to output
      tr - the RuntimeException throw object
    • always

      public static void always(String tag, String msg)
      Logs an unblocked Info message.
      This message cannot be blocked by setting a log level.
      Parameters:
      tag - String of the tag
      msg - String of the message to output
    • setLogLevel

      public static void setLogLevel(int logLevel)
      Sets the logging level (threshold).
      Valid values:
      1 - Info level
      2 - Debug level
      3 - Verbose level
      Parameters:
      logLevel - the threshold integer
    • logLevel

      public static int logLevel()
      Returns the currently set logging level (threshold)
      Returns:
      the current threshold log level integer
    • longMessage

      public static void longMessage(String tag, String msg)