logging

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildLogger

func BuildLogger(level int, development bool) *zap.Logger

BuildLogger return new zap.Logger instance with given severity and debug settings

func NewNullGRPCLogger

func NewNullGRPCLogger() grpclog.Logger

NewNullGRPCLogger returns new grpclog.Logger that log nothing.

useful for debugging to suppress lot of errors from gRPC transport when external service is unavailable

Note: logger must be set into the init() function, e.g:

		func init() {
    		grpclog.SetLogger(logging.NewNullGRPCLogger())
		}

Types

type NullLogger

type NullLogger struct{}

func (*NullLogger) Fatal

func (n *NullLogger) Fatal(args ...interface{})

func (*NullLogger) Fatalf

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

func (*NullLogger) Fatalln

func (n *NullLogger) Fatalln(args ...interface{})

func (*NullLogger) Print

func (n *NullLogger) Print(args ...interface{})

func (*NullLogger) Printf

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

func (*NullLogger) Println

func (n *NullLogger) Println(args ...interface{})

Jump to

Keyboard shortcuts

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