* * Copyright 2020 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http:www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *
Package grpclog (internal) defines depth logging for grpc.
package grpclog

import (
	
)
Logger is the logger used for the non-depth log functions.
DepthLogger is the logger used for the depth log functions.
InfoDepth logs to the INFO log at the specified depth.
func ( int,  ...interface{}) {
	if DepthLogger != nil {
		DepthLogger.InfoDepth(, ...)
	} else {
		Logger.Infoln(...)
	}
}
WarningDepth logs to the WARNING log at the specified depth.
func ( int,  ...interface{}) {
	if DepthLogger != nil {
		DepthLogger.WarningDepth(, ...)
	} else {
		Logger.Warningln(...)
	}
}
ErrorDepth logs to the ERROR log at the specified depth.
func ( int,  ...interface{}) {
	if DepthLogger != nil {
		DepthLogger.ErrorDepth(, ...)
	} else {
		Logger.Errorln(...)
	}
}
FatalDepth logs to the FATAL log at the specified depth.
func ( int,  ...interface{}) {
	if DepthLogger != nil {
		DepthLogger.FatalDepth(, ...)
	} else {
		Logger.Fatalln(...)
	}
	os.Exit(1)
}
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.
Info logs to INFO log. Arguments are handled in the manner of fmt.Print.
Infoln logs to INFO log. Arguments are handled in the manner of fmt.Println.
Infof logs to INFO log. Arguments are handled in the manner of fmt.Printf.
Warning logs to WARNING log. Arguments are handled in the manner of fmt.Print.
Warningln logs to WARNING log. Arguments are handled in the manner of fmt.Println.
Warningf logs to WARNING log. Arguments are handled in the manner of fmt.Printf.
Error logs to ERROR log. Arguments are handled in the manner of fmt.Print.
Errorln logs to ERROR log. Arguments are handled in the manner of fmt.Println.
Errorf logs to ERROR log. Arguments are handled in the manner of fmt.Printf.
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.
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.
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.
V reports whether verbosity level l is at least the requested verbose level.
	V(l int) bool
}
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. This API is EXPERIMENTAL.
InfoDepth logs to INFO log at the specified depth. Arguments are handled in the manner of fmt.Print.
WarningDepth logs to WARNING log at the specified depth. Arguments are handled in the manner of fmt.Print.
ErrorDetph logs to ERROR log at the specified depth. Arguments are handled in the manner of fmt.Print.
FatalDepth logs to FATAL log at the specified depth. Arguments are handled in the manner of fmt.Print.
	FatalDepth(depth int, args ...interface{})