Package io.grpc

Class ChannelLogger


  • @ExperimentalApi("https://github.com/grpc/grpc-java/issues/5029")
    @ThreadSafe
    public abstract class ChannelLogger
    extends java.lang.Object
    A Channel-specific logger provided by GRPC library to LoadBalancer implementations. Information logged here goes to Channelz, and to the Java logger of this class as well.
    • 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, java.lang.String message)
      Logs a message.
      abstract void log​(ChannelLogger.ChannelLogLevel level, java.lang.String messageFormat, java.lang.Object... args)
      Logs a message, using a message format and a list of arguments used to generate the log message with MessageFormat.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ChannelLogger

        public ChannelLogger()
    • Method Detail

      • log

        public abstract void log​(ChannelLogger.ChannelLogLevel level,
                                 java.lang.String messageFormat,
                                 java.lang.Object... args)
        Logs a message, using a message format and a list of arguments used to generate the log message with MessageFormat.