logz

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Discard = zap.NewNop()

Functions

func On

func On(fn func(*Log))

Types

type Log

type Log struct{}

type Logger

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

func New

func New(name string) *Logger

func (*Logger) Depth

func (t *Logger) Depth(depth ...int) *zap.Logger

func (*Logger) DepthS

func (t *Logger) DepthS(depth ...int) *zap.SugaredLogger

func (*Logger) Error

func (t *Logger) Error(args ...interface{})

func (*Logger) Errorf

func (t *Logger) Errorf(template string, args ...interface{})

func (*Logger) Errorw

func (t *Logger) Errorw(msg string, keysAndValues ...interface{})

func (*Logger) Info

func (t *Logger) Info(args ...interface{})

func (*Logger) Infof

func (t *Logger) Infof(template string, args ...interface{})

func (*Logger) Infow

func (t *Logger) Infow(msg string, keysAndValues ...interface{})

func (*Logger) LogAndThrow

func (t *Logger) LogAndThrow(msg string, fn func() error, fields ...zap.Field)

func (*Logger) Logs

func (t *Logger) Logs(msg string, fn func() error, fields ...zap.Field)

func (*Logger) Step

func (t *Logger) Step(msg string, fn func() error, fields ...zap.Field)

func (*Logger) StepAndThrow

func (t *Logger) StepAndThrow(msg string, fn func() error, fields ...zap.Field)

func (*Logger) TryWith

func (t *Logger) TryWith(fn func()) *zap.SugaredLogger

func (*Logger) Warn

func (t *Logger) Warn(args ...interface{})

func (*Logger) Warnf

func (t *Logger) Warnf(template string, args ...interface{})

func (*Logger) Warnw

func (t *Logger) Warnw(msg string, keysAndValues ...interface{})

func (*Logger) With

func (t *Logger) With(args ...zap.Field) *zap.Logger

func (*Logger) WithErr

func (t *Logger) WithErr(err error, fields ...zap.Field) *zap.Logger

Jump to

Keyboard shortcuts

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