grpclog

package
v1.66.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL