Class ConsoleLogger

java.lang.Object
com.couchbase.lite.ConsoleLogger
All Implemented Interfaces:
Logger

@Deprecated public class ConsoleLogger extends Object implements Logger
Deprecated.
Use com.couchbase.lite.logging.ConsoleLogSink
A class that sends log messages to Android's system log, available via 'adb logcat'.
  • Method Details

    • getLevel

      @NonNull public LogLevel getLevel()
      Deprecated.
      Gets the level that will be logged by the current logger.
      Specified by:
      getLevel in interface Logger
      Returns:
      The maximum level to log
    • setLevel

      public void setLevel(@NonNull LogLevel level)
      Deprecated.
      Sets the lowest level that will be logged to the console.
      Parameters:
      level - The lowest (most verbose) level to include in the logs
    • getDomains

      @NonNull public EnumSet<LogDomain> getDomains()
      Deprecated.
      Get the set of domains currently being logged to the console.
      Returns:
      The currently active domains
    • setDomains

      public void setDomains(@NonNull EnumSet<LogDomain> domains)
      Deprecated.
      Sets the domains that will be considered for writing to the console log.
      Parameters:
      domains - The domains to make active
    • setDomains

      public void setDomains(@NonNull LogDomain... domains)
      Deprecated.
      Sets the domains that will be considered for writing to the console log.
      Parameters:
      domains - The domains to make active (vararg)
    • log

      public void log(@NonNull LogLevel level, @NonNull LogDomain domain, @NonNull String message)
      Deprecated.
      Description copied from interface: Logger
      Performs the actual logging logic
      Specified by:
      log in interface Logger
      Parameters:
      level - The level of the message to log
      domain - The domain of the message to log
      message - The content of the message to log