log

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGormLogger added in v0.1.8

func NewGormLogger(options ...GormLoggerOption) glogger.Interface

Types

type EsimZap added in v0.1.8

type EsimZap struct {
	*zap.Logger
	// contains filtered or unexported fields
}

func NewEsimZap added in v0.1.8

func NewEsimZap(options ...ZapOption) *EsimZap

type GormLoggerOption added in v0.1.8

type GormLoggerOption func(c *gormLogger)

func WithGLogEsimZap added in v0.1.8

func WithGLogEsimZap(ez *EsimZap) GormLoggerOption

type GormLoggerOptions added in v0.1.8

type GormLoggerOptions struct{}

type Logger

type Logger interface {
	Error(msg string)

	Debugf(string, ...interface{})

	Infof(string, ...interface{})

	Warnf(string, ...interface{})

	Errorf(string, ...interface{})

	DPanicf(string, ...interface{})

	Panicf(string, ...interface{})

	Fatalf(string, ...interface{})

	Debugc(context.Context, string, ...interface{})

	Infoc(context.Context, string, ...interface{})

	Warnc(context.Context, string, ...interface{})

	Errorc(context.Context, string, ...interface{})

	DPanicc(context.Context, string, ...interface{})

	Panicc(context.Context, string, ...interface{})

	Fatalc(context.Context, string, ...interface{})
}

func NewLogger

func NewLogger(options ...Option) Logger

func NewNullLogger

func NewNullLogger() Logger

type LoggerOptions

type LoggerOptions struct{}

type Option

type Option func(c *logger)

func WithDebug added in v0.1.2

func WithDebug(debug bool) Option

func WithEsimZap added in v0.1.8

func WithEsimZap(ez *EsimZap) Option

func WithJSON added in v0.1.2

func WithJSON(json bool) Option

type ZapOption added in v0.1.8

type ZapOption func(c *EsimZap)

func WithEsimZapDebug added in v0.1.8

func WithEsimZapDebug(debug bool) ZapOption

func WithEsimZapJSON added in v0.1.8

func WithEsimZapJSON(json bool) ZapOption

func WithLogLevel added in v0.1.8

func WithLogLevel(level zapcore.Level) ZapOption

Jump to

Keyboard shortcuts

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