log

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debugf(template string, args ...interface{})
	Debugw(msg string, keysAndValues ...interface{})

	Infof(template string, args ...interface{})
	Infow(msg string, keysAndValues ...interface{})

	Warnf(template string, args ...interface{})
	Warnw(msg string, keysAndValues ...interface{})

	Errorf(template string, args ...interface{})
	Errorw(msg string, keysAndValues ...interface{})
}

func NewLogger

func NewLogger(opts ...Option) (Logger, error)

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithConsole

func WithConsole(Console bool) Option

func WithFileName

func WithFileName(FileName string) Option

func WithLevel

func WithLevel(Level preset.Level) Option

func WithLogType

func WithLogType(logType preset.LogType) Option

func WithMaxAge

func WithMaxAge(MaxAge int) Option

func WithMaxBackups

func WithMaxBackups(MaxBackups int) Option

func WithMaxSize

func WithMaxSize(MaxSize int) Option

Directories

Path Synopsis
provider
zap

Jump to

Keyboard shortcuts

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