Class Logger

java.lang.Object
com.twilio.voice.Logger

@Deprecated public final class Logger extends Object
Deprecated.
DEPRECATED - Logger class is deprecated and will be removed in the next major release. To provide a custom logger, implement the LoggerInterface Interface and set it using Voice.setLogger(LoggerInterface). The SDK will deliver all logs to this logger. To use the SDK's default logger to log one's own messages, retrieve the default logger instance currently being used by the SDK using Voice.getLogger() and send logs using its LoggerInterface.log(LogParameters) method.
  • Field Details

  • Method Details

    • getLogger

      public static Logger getLogger(Class<?> cls)
      Deprecated.
    • getLogLevel

      public static int getLogLevel()
      Deprecated.
    • setLogLevel

      public static void setLogLevel(int level)
      Deprecated.
    • setLevel

      public void setLevel(int level)
      Deprecated.
    • isVerboseEnabled

      public boolean isVerboseEnabled()
      Deprecated.
    • isDebugEnabled

      public boolean isDebugEnabled()
      Deprecated.
    • isInfoEnabled

      public boolean isInfoEnabled()
      Deprecated.
    • isWarnEnabled

      public boolean isWarnEnabled()
      Deprecated.
    • isErrorEnabled

      public boolean isErrorEnabled()
      Deprecated.
    • v

      public void v(String msg, Throwable t)
      Deprecated.
    • v

      public void v(String msg)
      Deprecated.
    • d

      public void d(String msg, Throwable t)
      Deprecated.
    • d

      public void d(String msg)
      Deprecated.
    • i

      public void i(String msg, Throwable t)
      Deprecated.
    • i

      public void i(String msg)
      Deprecated.
    • w

      public void w(String msg, Throwable t)
      Deprecated.
    • w

      public void w(String msg)
      Deprecated.
    • e

      public void e(String msg, Throwable t)
      Deprecated.
    • e

      public void e(String msg)
      Deprecated.