Interface Logger

All Known Implementing Classes:
ConsoleLogger, FileLogger

@Deprecated public interface Logger
Deprecated.
Use com.couchbase.lite.logging.BaseLogSink
The logging interface for Couchbase Lite. An application that wishes to route log messages to an arbitrary endpoint can do so by installing an implementation of this interface with Log.setCustom(Logger).
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Gets the level that will be logged via this logger.
    void
    log(LogLevel level, LogDomain domain, String message)
    Deprecated.
    Performs the actual logging logic
  • Method Details

    • getLevel

      @NonNull LogLevel getLevel()
      Deprecated.
      Gets the level that will be logged via this logger.
      Returns:
      The maximum level to log
    • log

      void log(@NonNull LogLevel level, @NonNull LogDomain domain, @NonNull String message)
      Deprecated.
      Performs the actual logging logic
      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