Package com.couchbase.lite.logging
Interface LogSinks
public interface LogSinks
-
Method Summary
Modifier and TypeMethodDescriptionstatic LogSinks
get()
The Console Log Sink: a sink that writes log messages to system console.The Custom Log Sink: a user-defined log sink that can forward log messages to a custom destination.getFile()
The File Log Sink: a sink that writes log messages to the Couchbase Lite Mobile File logger.void
setConsole
(ConsoleLogSink newLogger) void
setCustom
(BaseLogSink newLogger) void
setFile
(FileLogSink newLogger)
-
Method Details
-
get
- Returns:
- the singleton holder for the three log sinks.
-
getFile
The File Log Sink: a sink that writes log messages to the Couchbase Lite Mobile File logger. -
setFile
-
getConsole
The Console Log Sink: a sink that writes log messages to system console. -
setConsole
-
getCustom
The Custom Log Sink: a user-defined log sink that can forward log messages to a custom destination.Note that logging to the Custom Logger is asynchronous. A logger may receive several log messages after it has been removed or replaced as the current logger.
-
setCustom
-