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 boolean
void
log
(ChannelLogger.ChannelLogLevel level, String msg) Logs a message.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
.(package private) static void
logOnly
(InternalLogId logId, ChannelLogger.ChannelLogLevel level, String msg) (package private) static void
logOnly
(InternalLogId logId, ChannelLogger.ChannelLogLevel level, String messageFormat, Object... args) private static Level
private static InternalChannelz.ChannelTrace.Event.Severity
private void
trace
(ChannelLogger.ChannelLogLevel level, String msg)
-
Field Details
-
tracer
-
time
-
-
Constructor Details
-
ChannelLoggerImpl
ChannelLoggerImpl(ChannelTracer tracer, TimeProvider time)
-
-
Method Details
-
log
Description copied from class:ChannelLogger
Logs a message.- Specified by:
log
in classChannelLogger
-
log
Description copied from class:ChannelLogger
Logs a message, using a message format and a list of arguments used to generate the log message withMessageFormat
.- Specified by:
log
in 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
-