Top Description Inners Constructors Methods
io.grpc

public abstract Class ChannelLogger

extends Object
Class Inheritance
Annotations
@ExperimentalApi:https://github.com/grpc/grpc-java/issues/5029
@ThreadSafe
Imports
javax.annotation.concurrent.ThreadSafe

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.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract void
log(ChannelLogger.ChannelLogLevel level, String message)

Logs a message.

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 with java.text.MessageFormat.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ChannelLoggerback to summary
public ChannelLogger()

Method Detail

logback to summary
public abstract void log(ChannelLogger.ChannelLogLevel level, String message)

Logs a message.

logback to summary
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 with java.text.MessageFormat.

io.grpc back to summary

public final Enum ChannelLogger.ChannelLogLevel

extends Enum<ChannelLogger.ChannelLogLevel>
Class Inheritance

Log levels. See the table below for the mapping from the ChannelLogger levels to Channelz severity level (see ChannelTraceEvent from channelz.proto) and Java logger levels. Note that DEBUG level is not recorded on Channelz.
+---------------------+-------------------+-------------------+
| ChannelLogger Level | Channelz Severity | Java Logger Level |
+---------------------+-------------------+-------------------+
| DEBUG               | N/A               | FINEST            |
| INFO                | CT_INFO           | FINER             |
| WARNING             | CT_WARNING        | FINE             |
| ERROR               | CT_ERROR          | FINE              |
+---------------------+-------------------+-------------------+

Field Summary

Modifier and TypeField and Description
public static final ChannelLogger.ChannelLogLevel
public static final ChannelLogger.ChannelLogLevel
public static final ChannelLogger.ChannelLogLevel
public static final ChannelLogger.ChannelLogLevel

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ChannelLogger.ChannelLogLevel
public static ChannelLogger.ChannelLogLevel[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

DEBUGback to summary
public static final ChannelLogger.ChannelLogLevel DEBUG
ERRORback to summary
public static final ChannelLogger.ChannelLogLevel ERROR
INFOback to summary
public static final ChannelLogger.ChannelLogLevel INFO
WARNINGback to summary
public static final ChannelLogger.ChannelLogLevel WARNING

Constructor Detail

ChannelLogLevelback to summary
private ChannelLogLevel()

Method Detail

valueOfback to summary
public static ChannelLogger.ChannelLogLevel valueOf(String name)
valuesback to summary
public static ChannelLogger.ChannelLogLevel[] values()