Package com.couchbase.lite
Class ConsoleLogger
java.lang.Object
com.couchbase.lite.ConsoleLogger
- All Implemented Interfaces:
Logger
A class for sending log messages to the console.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Get the set of domains currently being logged to the console.getLevel()
Gets the level that will be logged via this logger.static PrintStream
getLogStream
(LogLevel level) 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
-
getLogStream
-
formatLog
-
log
Description copied from interface:Logger
Performs the actual logging logic -
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)
-