package grpclog
import "k8s.io/kubernetes/Godeps/_workspace/src/google.golang.org/grpc/grpclog"
Package log defines logging for grpc.
Index ¶
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Fatalln(args ...interface{})
- func Print(args ...interface{})
- func Printf(format string, args ...interface{})
- func Println(args ...interface{})
- func SetLogger(l Logger)
- type Logger
Functions ¶
func Fatal ¶
func Fatal(args ...interface{})
Fatal is equivalent to Print() followed by a call to os.Exit() with a non-zero exit code.
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatal is equivalent to Printf() followed by a call to os.Exit() with a non-zero exit code.
func Fatalln ¶
func Fatalln(args ...interface{})
Fatal is equivalent to Println() followed by a call to os.Exit()) with a non-zero exit code.
func Print ¶
func Print(args ...interface{})
Print prints to the logger. Arguments are handled in the manner of fmt.Print.
func Printf ¶
func Printf(format string, args ...interface{})
Printf prints to the logger. Arguments are handled in the manner of fmt.Printf.
func Println ¶
func Println(args ...interface{})
Println prints to the logger. Arguments are handled in the manner of fmt.Println.
func SetLogger ¶
func SetLogger(l Logger)
SetLogger sets the logger that is used in grpc.
Types ¶
type 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.
var ( // GLogger is a Logger that uses glog. This is the default logger. GLogger Logger = &glogger{} // StdLogger is a Logger that uses golang's standard logger. StdLogger Logger = log.New(os.Stderr, "", log.LstdFlags) )
Source Files ¶
logger.go
- Version
- v1.2.0-alpha.4
- Published
- Nov 25, 2015
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 2 minutes ago –
Tools for package owners.