Package io.grpc
Class ChannelLogger
- java.lang.Object
-
- io.grpc.ChannelLogger
-
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/5029") @ThreadSafe public abstract class ChannelLogger extends Object
A Channel-specific logger provided by GRPC library toLoadBalancer
implementations. Information logged here goes to Channelz, and to the Java logger of this class as well.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChannelLogger.ChannelLogLevel
Log levels.
-
Constructor Summary
Constructors Constructor Description ChannelLogger()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract void
log(ChannelLogger.ChannelLogLevel level, String message)
Logs a message.abstract void
log(ChannelLogger.ChannelLogLevel level, String messageFormat, Object... args)
Logs a message, using a message format and a list of arguments used to generate the log message withMessageFormat
.
-
-
-
Method Detail
-
log
public abstract void log(ChannelLogger.ChannelLogLevel level, String message)
Logs a message.
-
log
public abstract void log(ChannelLogger.ChannelLogLevel level, String messageFormat, Object... args)
Logs a message, using a message format and a list of arguments used to generate the log message withMessageFormat
.
-
-