Package com.couchbase.client.core.cnc
Class LoggingEventConsumer
java.lang.Object
com.couchbase.client.core.cnc.LoggingEventConsumer
Consumes
Events
and logs them per configuration.
This consumer is intended to be attached per default and performs convenient logging throughout the system. It tries to detect settings and loggers in a best-effort way but can always be swapped out or changed to implement custom functionality.
If SLF4J is detected on the classpath it will be used, otherwise it will fall back to java.com.couchbase.client.test.util.logging or the console depending on the configuration.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Generic logger interface. -
Method Summary
Modifier and TypeMethodDescriptionvoid
static LoggingEventConsumer
create()
Creates a newLoggingEventConsumer
with all defaults.static LoggingEventConsumer
create
(LoggerConfig loggerConfig)
-
Method Details
-
create
Creates a newLoggingEventConsumer
with all defaults.- Returns:
- a
LoggingEventConsumer
.
-
create
-
accept
-