log

package
v0.0.0-...-d64fc3f Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAntsLogger

func NewAntsLogger(logger log.Logger) ants.Logger

NewZapLogger new a zap logger with options.

func NewCronLogger

func NewCronLogger(logger log.Logger) cron.Logger

NewZapLogger new a zap logger with options.

func NewGorequsetLogger

func NewGorequsetLogger(logger log.Logger) gorequest.Logger

NewZapLogger new a zap logger with options.

func NewGormLogger

func NewGormLogger(logger log.Logger, config logger.Config) logger.Interface

Types

type ZapLogger

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

func NewZapLogger

func NewZapLogger(path, prefix string, stdout bool, level zapcore.Level) *ZapLogger

NewZapLogger new a zap logger with options.

func (*ZapLogger) Close

func (s *ZapLogger) Close()

func (*ZapLogger) Log

func (s *ZapLogger) Log(level log.Level, keyvals ...interface{}) error

Print print the kv pairs log.

Jump to

Keyboard shortcuts

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