log

package
v0.0.0-...-abe1be5 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewZapLogger

func NewZapLogger(level, format string) (*zap.Logger, error)

NewZapLogger creates and returns a zap Logger

func NewZapSugaredLogger

func NewZapSugaredLogger(level, format string) (*zap.SugaredLogger, error)

NewZapSugaredLogger creates and returns a zap SugaredLogger

Types

type GooseLogger

type GooseLogger struct {
	// contains filtered or unexported fields
}

GooseLogger adapts zap's GooseLogger to be compatible with goose.Logger.

func NewGooseLogger

func NewGooseLogger(level, format string) (*GooseLogger, error)

NewGooseLogger creates and returs a logger for Goose

func (*GooseLogger) Fatal

func (l *GooseLogger) Fatal(args ...interface{})

Fatal implements goose.Logger.

func (*GooseLogger) Fatalf

func (l *GooseLogger) Fatalf(format string, args ...interface{})

Fatalf implements goose.Logger.

func (*GooseLogger) Fatalln

func (l *GooseLogger) Fatalln(args ...interface{})

Fatalln implements goose.Logger.

func (*GooseLogger) Print

func (l *GooseLogger) Print(args ...interface{})

Print implements goose.Logger.

func (*GooseLogger) Printf

func (l *GooseLogger) Printf(format string, args ...interface{})

Printf implements goose.Logger.

func (*GooseLogger) Println

func (l *GooseLogger) Println(args ...interface{})

Println implements goose.Logger.

Jump to

Keyboard shortcuts

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