zapsugar

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewZapSugar

func NewZapSugar(c ...*logger.Config) logger.Logger

Init Init

func TimeEncoder

func TimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)

TimeEncoder time format

Types

type ZapSugar

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

func (*ZapSugar) Debugf

func (e *ZapSugar) Debugf(format string, v ...interface{})

func (*ZapSugar) Fatalf added in v0.0.7

func (e *ZapSugar) Fatalf(format string, v ...interface{})

func (*ZapSugar) Infof

func (e *ZapSugar) Infof(format string, v ...interface{})

func (*ZapSugar) Log

func (e *ZapSugar) Log(level logger.Level, v ...interface{})

func (*ZapSugar) Logf

func (e *ZapSugar) Logf(level logger.Level, format string, v ...interface{})

Logf writes a formatted log entry

func (*ZapSugar) Options

func (e *ZapSugar) Options() logger.Options

func (*ZapSugar) String

func (e *ZapSugar) String() string

String returns the name of logger

Jump to

Keyboard shortcuts

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