rich

package
v0.0.0-...-b212643 Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

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

func Errorf

func Errorf(format string, a ...interface{}) *Error

func (*Error) Error

func (e *Error) Error() string

func (*Error) Sugar

func (e *Error) Sugar() *Sugared

func (*Error) With

func (e *Error) With(fields ...zap.Field) *Error

type Logger

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

func Log

func Log(log *zap.Logger) *Logger

func (*Logger) With

func (l *Logger) With(fields ...zap.Field) *zap.Logger

type Sugared

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

func (*Sugared) Error

func (s *Sugared) Error() string

func (*Sugared) With

func (s *Sugared) With(args ...interface{}) *Sugared

type SugaredLogger

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

func Sugar

func Sugar(log *zap.SugaredLogger) *SugaredLogger

func (*SugaredLogger) With

func (s *SugaredLogger) With(args ...interface{}) *zap.SugaredLogger

Jump to

Keyboard shortcuts

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