Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

grpclog

v0.0.0-20170609214715-11d0a25b4919
go4.org/grpc/grpclog

Documentation

pkg.go.dev ↗

Table of contents

↓ to select · Enter to jump· Shift+Enter for source

10 matches

Top ↑

Package grpclog defines logging for grpc.

Functions

Fatal

func Fatal(args ...interface{})

Fatal is equivalent to Print() followed by a call to os.Exit() with a non-zero exit code.

Fatalf

func Fatalf(format string, args ...interface{})

Fatalf is equivalent to Printf() followed by a call to os.Exit() with a non-zero exit code.

Fatalln

func Fatalln(args ...interface{})

Fatalln is equivalent to Println() followed by a call to os.Exit()) with a non-zero exit code.

Print

func Print(args ...interface{})

Print prints to the logger. Arguments are handled in the manner of fmt.Print.

Printf

func Printf(format string, args ...interface{})

Printf prints to the logger. Arguments are handled in the manner of fmt.Printf.

Println

func Println(args ...interface{})

Println prints to the logger. Arguments are handled in the manner of fmt.Println.

SetLogger

func SetLogger(l Logger)

SetLogger sets the logger that is used in grpc. Call only from init() functions.

Types

Logger

type Logger interface {
	Fatal(args ...interface{})
	Fatalf(format string, args ...interface{})
	Fatalln(args ...interface{})
	Print(args ...interface{})
	Printf(format string, args ...interface{})
	Println(args ...interface{})
}

Logger mimics golang's standard Logger as an interface.

Dependency graph