Package com.couchbase.lite
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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConsoleLogger
getConsole()
Gets the logger that writes to the system consoleLogger
getCustom()
Gets the custom logger that was registered by the application (if any)FileLogger
getFile()
Gets the logger that writes to log filesvoid
setCustom(Logger customLogger)
Sets an application specific logging method
-
-
-
Method Detail
-
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
-
-