程序包 | 说明 |
---|---|
reactor.core.publisher | |
reactor.core.util | |
reactor.test.util | |
reactor.util |
Miscellaneous utility classes, such as loggers, tuples or queue suppliers and implementations.
|
限定符和类型 | 方法和说明 |
---|---|
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)
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,
java.util.logging.Level level,
boolean showOperatorLine,
SignalType... options)
Observe Reactive Streams signals matching the passed filter
options and
trace them using a specific user-provided Logger , at the given Level . |
Flux<T> |
Flux.log(Logger logger,
java.util.logging.Level level,
boolean showOperatorLine,
SignalType... options)
Observe Reactive Streams signals matching the passed filter
options and
trace them using a specific user-provided Logger , at the given Level . |
限定符和类型 | 类和说明 |
---|---|
class |
FastLogger
Implementation of
Logger which is based on the ThreadLocal based
queue which collects all the events on the per-thread basis. |
限定符和类型 | 类和说明 |
---|---|
class |
TestLogger
A
Logger that writes to ByteArrayOutputStream and allows retrieval of
the logs via TestLogger.getErrContent() and TestLogger.getOutContent() . |
限定符和类型 | 方法和说明 |
---|---|
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.
|
限定符和类型 | 方法和说明 |
---|---|
static Logger |
Loggers.getLogger(java.lang.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(java.lang.String name)
Get a
Logger . |
限定符和类型 | 方法和说明 |
---|---|
static void |
Loggers.useCustomLoggers(java.util.function.Function<java.lang.String,? extends Logger> loggerFactory)
Use a custom type of
Logger created through the provided Function ,
which takes a logger name as input. |