grpclog

package
v1.0.1-GA Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2016 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package grpclog defines logging for grpc.

Index

Constants

This section is empty.

Variables

This section is empty.

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{})

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

func Fatalln

func Fatalln(args ...interface{})

Fatalln 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. Call only from init() functions.

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.

Directories

Path Synopsis
Package glogger defines glog-based logging for grpc.
Package glogger defines glog-based logging for grpc.

Jump to

Keyboard shortcuts

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