Class Log

java.lang.Object
com.couchbase.lite.Log

public final class Log extends Object
Holder for the three Couchbase Lite loggers: console, file, and custom.
  • Method Details

    • getConsole

      @NonNull public ConsoleLogger getConsole()
      Gets the logger that writes to the system console
      Returns:
      The logger that writes to the system console
    • getFile

      @NonNull public FileLogger getFile()
      Gets the logger that writes to log files
      Returns:
      The logger that writes to log files
    • getCustom

      @Nullable public Logger getCustom()
      Gets the custom logger that was registered by the application (if any)
      Returns:
      The custom logger that was registered by the application, or null.
    • setCustom

      public void setCustom(@Nullable Logger customLogger)
      Sets an application specific logging method
      Parameters:
      customLogger - A Logger implementation that will receive logging messages