Class Logger

java.lang.Object
com.yubico.yubikit.core.Logger

@Deprecated public abstract class Logger extends Object
Deprecated.
This class and all its public methods have been deprecated in YubiKit 2.3.0 and will be removed in future release.
Helper class allows to customize logs within the SDK SDK has only 2 levels of logging: debug information and error If a Logger implementation is not provided the SDK won't produce any logs
See Also:
  • Logging Migration contains information about logging in YubiKit, best practices and migration from Logger.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    d(String message)
    Deprecated.
    Log a debug message.
    static void
    e(String message, Throwable throwable)
    Deprecated.
    Log an error message, together with an exception.
    protected void
    logDebug(String message)
    Deprecated.
    Specifies how debug messages are logged.
    protected void
    logError(String message, Throwable throwable)
    Deprecated.
    Specifies how error messages (with exceptions) are logged.
    static void
    setLogger(Logger logger)
    Deprecated.
    Set the Logger implementation to use.

    Methods inherited from class java.lang.Object

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

    • Logger

      public Logger()
      Deprecated.
  • Method Details

    • logDebug

      protected void logDebug(String message)
      Deprecated.
      Specifies how debug messages are logged.

      If this method is not overridden, then debug messages will not be logged.

      Parameters:
      message - the message can to be logged
    • logError

      protected void logError(String message, Throwable throwable)
      Deprecated.
      Specifies how error messages (with exceptions) are logged.

      If this method is not overridden, then error messages will not be logged.

      Parameters:
      message - the message can to be logged
      throwable - the exception that can to be logged or counted
    • setLogger

      public static void setLogger(@Nullable Logger logger)
      Deprecated.
      Set the Logger implementation to use. Override the logDebug and logError methods to produce logs. Call with null to disable logging.
      Parameters:
      logger - the Logger implementation to use
    • d

      public static void d(String message)
      Deprecated.
      Log a debug message.
    • e

      public static void e(String message, Throwable throwable)
      Deprecated.
      Log an error message, together with an exception.