Package io.grpc.internal
Class ChannelLoggerImpl
java.lang.Object
io.grpc.ChannelLogger
io.grpc.internal.ChannelLoggerImpl
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.ChannelLogger
ChannelLogger.ChannelLogLevel -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanvoidlog(ChannelLogger.ChannelLogLevel level, String msg) Logs a message.voidlog(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.(package private) static voidlogOnly(InternalLogId logId, ChannelLogger.ChannelLogLevel level, String msg) (package private) static voidlogOnly(InternalLogId logId, ChannelLogger.ChannelLogLevel level, String messageFormat, Object... args) private static Levelprivate static InternalChannelz.ChannelTrace.Event.Severityprivate voidtrace(ChannelLogger.ChannelLogLevel level, String msg)
-
Field Details
-
tracer
-
time
-
-
Constructor Details
-
ChannelLoggerImpl
ChannelLoggerImpl(ChannelTracer tracer, TimeProvider time)
-
-
Method Details
-
log
Description copied from class:ChannelLoggerLogs a message.- Specified by:
login classChannelLogger
-
log
Description copied from class:ChannelLoggerLogs a message, using a message format and a list of arguments used to generate the log message withMessageFormat.- Specified by:
login classChannelLogger
-
logOnly
-
logOnly
static void logOnly(InternalLogId logId, ChannelLogger.ChannelLogLevel level, String messageFormat, Object... args) -
isTraceable
-
trace
-
toTracerSeverity
private static InternalChannelz.ChannelTrace.Event.Severity toTracerSeverity(ChannelLogger.ChannelLogLevel level) -
toJavaLogLevel
-