package grpclog
Import Path
google.golang.org/grpc/internal/grpclog (on go.dev)
Dependency Relation
imports 2 packages, and imported by one package
Package-Level Type Names (total 3, all are exported)
DepthLoggerV2 logs at a specified call frame. If a LoggerV2 also implements
DepthLoggerV2, the below functions will be called with the appropriate stack
depth set for trivial functions the logger may ignore.
This is a copy of the DepthLoggerV2 defined in the external grpclog package.
It is defined here to avoid a circular dependency.
# Experimental
Notice: This type is EXPERIMENTAL and may be changed or removed in a
later release.
ErrorDepth logs to ERROR log at the specified depth. Arguments are handled in the manner of fmt.Println.
FatalDepth logs to FATAL log at the specified depth. Arguments are handled in the manner of fmt.Println.
InfoDepth logs to INFO log at the specified depth. Arguments are handled in the manner of fmt.Println.
WarningDepth logs to WARNING log at the specified depth. Arguments are handled in the manner of fmt.Println.
google.golang.org/grpc/grpclog.DepthLoggerV2 (interface)
*google.golang.org/grpc/grpclog.componentData
func NewPrefixLogger(logger DepthLoggerV2, prefix string) *PrefixLogger
var DepthLogger
LoggerV2 does underlying logging work for grpclog.
This is a copy of the LoggerV2 defined in the external grpclog package. It
is defined here to avoid a circular dependency.
Error logs to ERROR log. Arguments are handled in the manner of fmt.Print.
Errorf logs to ERROR log. Arguments are handled in the manner of fmt.Printf.
Errorln logs to ERROR log. Arguments are handled in the manner of fmt.Println.
Fatal logs to ERROR log. Arguments are handled in the manner of fmt.Print.
gRPC ensures that all Fatal logs will exit with os.Exit(1).
Implementations may also call os.Exit() with a non-zero exit code.
Fatalf logs to ERROR log. Arguments are handled in the manner of fmt.Printf.
gRPC ensures that all Fatal logs will exit with os.Exit(1).
Implementations may also call os.Exit() with a non-zero exit code.
Fatalln logs to ERROR log. Arguments are handled in the manner of fmt.Println.
gRPC ensures that all Fatal logs will exit with os.Exit(1).
Implementations may also call os.Exit() with a non-zero exit code.
Info logs to INFO log. Arguments are handled in the manner of fmt.Print.
Infof logs to INFO log. Arguments are handled in the manner of fmt.Printf.
Infoln logs to INFO log. Arguments are handled in the manner of fmt.Println.
V reports whether verbosity level l is at least the requested verbose level.
Warning logs to WARNING log. Arguments are handled in the manner of fmt.Print.
Warningf logs to WARNING log. Arguments are handled in the manner of fmt.Printf.
Warningln logs to WARNING log. Arguments are handled in the manner of fmt.Println.
google.golang.org/grpc/grpclog.DepthLoggerV2 (interface)
google.golang.org/grpc/grpclog.LoggerV2 (interface)
*google.golang.org/grpc/grpclog.componentData
*google.golang.org/grpc/grpclog.loggerT
*google.golang.org/grpc/grpclog.loggerWrapper
LoggerV2 : google.golang.org/grpc/grpclog.LoggerV2
LoggerV2 : github.com/golang/mock/gomock.TestReporter
LoggerV2 : go.uber.org/goleak.TestingT
var Logger
PrefixLogger does logging with a prefix.
Logging method on a nil logs without any prefix.
logger DepthLoggerV2
prefix string
Debugf does info logging at verbose level 2.
Errorf does error logging.
Infof does info logging.
Warningf does warning logging.
func NewPrefixLogger(logger DepthLoggerV2, prefix string) *PrefixLogger
Package-Level Functions (total 5, all are exported)
ErrorDepth logs to the ERROR log at the specified depth.
FatalDepth logs to the FATAL log at the specified depth.
InfoDepth logs to the INFO log at the specified depth.
NewPrefixLogger creates a prefix logger with the given prefix.
WarningDepth logs to the WARNING log at the specified depth.
Package-Level Variables (total 2, both are exported)
DepthLogger is the logger used for the depth log functions.
Logger is the logger used for the non-depth log functions.
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)