zaplog

package
v0.0.0-...-e77fd90 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CoupArray

func CoupArray(kv []interface{}) []interface{}

拼接完整的数组

Types

type Log

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

func NewLogger

func NewLogger(logger *zap.SugaredLogger, atom zap.AtomicLevel, options *options.Options) *Log

func (*Log) Debug

func (l *Log) Debug(msg string, keysAndValues ...interface{})

func (*Log) Debugf

func (l *Log) Debugf(format string, args ...interface{})

func (*Log) Dump

func (l *Log) Dump(msg string, keysAndValues ...interface{})

func (*Log) Dumpf

func (l *Log) Dumpf(format string, args ...interface{})

func (*Log) Error

func (l *Log) Error(msg string, keysAndValues ...interface{})

func (*Log) Errorf

func (l *Log) Errorf(format string, args ...interface{})

func (*Log) Fatal

func (l *Log) Fatal(msg string, keysAndValues ...interface{})

func (*Log) Fatalf

func (l *Log) Fatalf(format string, args ...interface{})

func (*Log) Info

func (l *Log) Info(msg string, keysAndValues ...interface{})

func (*Log) Infof

func (l *Log) Infof(format string, args ...interface{})

func (*Log) Options

func (l *Log) Options() string

func (*Log) Panic

func (l *Log) Panic(msg string, keysAndValues ...interface{})

func (*Log) Panicf

func (l *Log) Panicf(format string, args ...interface{})

func (*Log) SetLogLevel

func (l *Log) SetLogLevel(level options.Level)

func (*Log) Sync

func (l *Log) Sync()

func (*Log) Warn

func (l *Log) Warn(msg string, keysAndValues ...interface{})

func (*Log) Warnf

func (l *Log) Warnf(format string, args ...interface{})

Jump to

Keyboard shortcuts

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