Package com.couchbase.lite
Class ConsoleLogger
- java.lang.Object
-
- com.couchbase.lite.ConsoleLogger
-
- All Implemented Interfaces:
Logger
public final class ConsoleLogger extends java.lang.ObjectA class that sends log messages to Android's system log, available via 'logcat'.
-
-
Constructor Summary
Constructors Constructor Description ConsoleLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.EnumSet<LogDomain>getDomains()Gets the domains that will be considered for writing to the console log.LogLevelgetLevel()Gets the level that will be logged via this logger.voidlog(LogLevel level, LogDomain domain, java.lang.String message)Performs the actual logging logicvoidsetDomains(LogDomain... domains)Sets the domains that will be considered for writing to the console log.voidsetDomains(java.util.EnumSet<LogDomain> domains)Sets the domains that will be considered for writing to the console log.voidsetLevel(LogLevel level)Sets the overall logging level that will be written to the console log.
-
-
-
Method Detail
-
log
public void log(@NonNull LogLevel level, @NonNull LogDomain domain, @NonNull java.lang.String message)Description copied from interface:LoggerPerforms the actual logging logic
-
getLevel
@NonNull public LogLevel getLevel()
Description copied from interface:LoggerGets the level that will be logged via this logger.
-
setLevel
public void setLevel(@NonNull LogLevel level)Sets the overall logging level that will be written to the console log.- Parameters:
level- The lowest (most verbose) level to include in the logs
-
getDomains
@NonNull public java.util.EnumSet<LogDomain> getDomains()
Gets the domains that will be considered for writing to the console log.- Returns:
- The currently active domains
-
setDomains
public void setDomains(@NonNull java.util.EnumSet<LogDomain> domains)Sets the domains that will be considered for writing to the console log.- Parameters:
domains- The domains to make active
-
setDomains
public void setDomains(@NonNull LogDomain... domains)Sets the domains that will be considered for writing to the console log.- Parameters:
domains- The domains to make active (vararg)
-
-