Documentation ¶
Overview ¶
Package grpclog provides logging functionality for internal gRPC packages, outside of the functionality provided by the external `grpclog` package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrefixLogger ¶
type PrefixLogger struct {
// contains filtered or unexported fields
}
PrefixLogger does logging with a prefix.
Logging method on a nil logs without any prefix.
func NewPrefixLogger ¶
func NewPrefixLogger(logger grpclog.DepthLoggerV2, prefix string) *PrefixLogger
NewPrefixLogger creates a prefix logger with the given prefix.
func (*PrefixLogger) Errorf ¶
func (pl *PrefixLogger) Errorf(format string, args ...any)
Errorf does error logging.
func (*PrefixLogger) Infof ¶
func (pl *PrefixLogger) Infof(format string, args ...any)
Infof does info logging.
func (*PrefixLogger) V ¶ added in v1.54.0
func (pl *PrefixLogger) V(l int) bool
V reports whether verbosity level l is at least the requested verbose level.
func (*PrefixLogger) Warningf ¶
func (pl *PrefixLogger) Warningf(format string, args ...any)
Warningf does warning logging.
Click to show internal directories.
Click to hide internal directories.