Package com.couchbase.lite
Class Log
java.lang.Object
com.couchbase.lite.Log
Holder for the three Couchbase Lite loggers: console, file, and custom.
-
Method Summary
Modifier and TypeMethodDescriptionGets the logger that writes to the system consoleGets the custom logger that was registered by the application (if any)getFile()
Gets the logger that writes to log filesvoid
Sets an application specific logging method
-
Method Details
-
getConsole
Gets the logger that writes to the system console- Returns:
- The logger that writes to the system console
-
getFile
Gets the logger that writes to log files- Returns:
- The logger that writes to log files
-
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
Sets an application specific logging method- Parameters:
customLogger
- A Logger implementation that will receive logging messages
-