package
Version:
v1.5.0
Opens a new window with list of versions in this module.
Published: Jul 23, 2017
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 358
Opens a new window with list of known importers.
Documentation
¶
Package zapgrpc provides a logger that is compatible with grpclog.
Logger adapts zap's Logger to be compatible with grpclog.Logger.
NewLogger returns a new Logger.
By default, Loggers print at zap's InfoLevel.
func (l *Logger) Fatal(args ...interface{})
Fatal implements grpclog.Logger.
Fatalf implements grpclog.Logger.
func (l *Logger) Fatalln(args ...interface{})
Fatalln implements grpclog.Logger.
func (l *Logger) Print(args ...interface{})
Print implements grpclog.Logger.
Printf implements grpclog.Logger.
func (l *Logger) Println(args ...interface{})
Println implements grpclog.Logger.
type Option interface {
}
An Option overrides a Logger's default configuration.
WithDebug configures a Logger to print at zap's DebugLevel instead of
InfoLevel.
Source Files
¶
Directories
¶
internal
|
|
|
|
Click to show internal directories.
Click to hide internal directories.