Package | Description |
---|---|
reactor.core.publisher | |
reactor.test.util | |
reactor.util |
Miscellaneous utility classes, such as loggers, tuples or queue suppliers and implementations.
|
Modifier and Type | Method and Description |
---|---|
Flux<T> |
Flux.log(Logger logger)
Observe Reactive Streams signals matching the passed filter
options and
trace them using a specific user-provided Logger , at Level.INFO level. |
Mono<T> |
Mono.log(Logger logger)
Observe Reactive Streams signals matching the passed filter
options and
trace them using a specific user-provided Logger , at Level.INFO level. |
Flux<T> |
Flux.log(Logger logger,
Level level,
boolean showOperatorLine,
SignalType... options)
|
Mono<T> |
Mono.log(Logger logger,
Level level,
boolean showOperatorLine,
SignalType... options)
|
Modifier and Type | Class and Description |
---|---|
class |
TestLogger
A
Logger that writes to ByteArrayOutputStream and allows retrieval of
the logs via TestLogger.getErrContent() and TestLogger.getOutContent() . |
Modifier and Type | Method and Description |
---|---|
static void |
LoggerUtils.enableCaptureWith(Logger testLogger)
Set the logger used for capturing.
|
static void |
LoggerUtils.enableCaptureWith(Logger testLogger,
boolean redirectToOriginal)
Set the logger used for capturing, an optionally suppress log messages from original logger.
|
Modifier and Type | Method and Description |
---|---|
static Logger |
Loggers.getLogger(Class<?> cls)
Get a
Logger , backed by SLF4J if present on the classpath or falling back
to java.util.logging.Logger . |
static Logger |
Loggers.getLogger(String name)
Get a
Logger . |
Modifier and Type | Method and Description |
---|---|
static void |
Loggers.useCustomLoggers(Function<String,? extends Logger> loggerFactory)
|