package
Version:
v0.0.0-...-f5a7f8c
Opens a new window with list of versions in this module.
Published: Oct 10, 2019
License: Apache-2.0, MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
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
¶
Click to show internal directories.
Click to hide internal directories.