grpc

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger(logger *logx.Logger) *Logger

func (*Logger) Error

func (self *Logger) Error(args ...any)

Error logs to ERROR log. Arguments are handled in the manner of fmt.Print.

func (*Logger) Errorf

func (self *Logger) Errorf(format string, args ...any)

Errorf logs to ERROR log. Arguments are handled in the manner of fmt.Printf.

func (*Logger) Errorln

func (self *Logger) Errorln(args ...any)

Errorln logs to ERROR log. Arguments are handled in the manner of fmt.Println.

func (*Logger) Fatal

func (self *Logger) Fatal(args ...any)

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.

func (*Logger) Fatalf

func (self *Logger) Fatalf(format string, args ...any)

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.

func (*Logger) Fatalln

func (self *Logger) Fatalln(args ...any)

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.

func (*Logger) Info

func (self *Logger) Info(args ...any)

Info logs to INFO log. Arguments are handled in the manner of fmt.Print.

func (*Logger) Infof

func (self *Logger) Infof(format string, args ...any)

Infof logs to INFO log. Arguments are handled in the manner of fmt.Printf.

func (*Logger) Infoln

func (self *Logger) Infoln(args ...any)

Infoln logs to INFO log. Arguments are handled in the manner of fmt.Println.

func (*Logger) V

func (self *Logger) V(l int) bool

V reports whether verbosity level l is at least the requested verbose level.

func (*Logger) Warning

func (self *Logger) Warning(args ...any)

Warning logs to WARNING log. Arguments are handled in the manner of fmt.Print.

func (*Logger) Warningf

func (self *Logger) Warningf(format string, args ...any)

Warningf logs to WARNING log. Arguments are handled in the manner of fmt.Printf.

func (*Logger) Warningln

func (self *Logger) Warningln(args ...any)

Warningln logs to WARNING log. Arguments are handled in the manner of fmt.Println.

Jump to

Keyboard shortcuts

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