Package com.couchbase.lite
Class ConsoleLogger
java.lang.Object
com.couchbase.lite.ConsoleLogger
- All Implemented Interfaces:
Logger
A class that sends log messages to Android's system log, available via 'adb logcat'.
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Get the set of domains currently being logged to the console.getLevel()
Gets the level that will be logged via this logger.void
Performs the actual logging logicvoid
setDomains
(LogDomain... domains) Sets the domains that will be considered for writing to the console log.void
setDomains
(EnumSet<LogDomain> domains) Sets the domains that will be considered for writing to the console log.void
Sets the lowest level that will be logged to the console.
-
Method Details
-
log
Description copied from interface:Logger
Performs the actual logging logic -
doLog
-
getLevel
Description copied from interface:Logger
Gets the level that will be logged via this logger. -
setLevel
Sets the lowest level that will be logged to the console.- Parameters:
level
- The lowest (most verbose) level to include in the logs
-
getDomains
Get the set of domains currently being logged to the console.- Returns:
- The currently active domains
-
setDomains
Sets the domains that will be considered for writing to the console log.- Parameters:
domains
- The domains to make active
-
setDomains
Sets the domains that will be considered for writing to the console log.- Parameters:
domains
- The domains to make active (vararg)
-