vlog

package
v0.0.0-...-1671bb8 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogOption

type LogOption func(o *logOptions)

func WithCaller

func WithCaller() LogOption

func WithLevelDebug

func WithLevelDebug() LogOption

func WithLevelError

func WithLevelError() LogOption

func WithLevelInfo

func WithLevelInfo() LogOption

func WithLevelWarn

func WithLevelWarn() LogOption

func WithLogUnixTimestamp

func WithLogUnixTimestamp() LogOption
func WithOutputFileLink(path string, filename string) LogOption

func WithOutputFilePath

func WithOutputFilePath(path string, pattern string) LogOption

func WithOutputFileRotate

func WithOutputFileRotate(maxFiles uint, rotationTime time.Duration) LogOption

func WithPrefix

func WithPrefix(prefix map[string]interface{}) LogOption

type Vlogger

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

func NewVlogger

func NewVlogger(opts ...LogOption) (*Vlogger, error)

func (*Vlogger) AppendTimeDelay

func (l *Vlogger) AppendTimeDelay(tstart time.Time, log zerolog.Logger) zerolog.Logger

func (*Vlogger) Writer

func (l *Vlogger) Writer() *zerolog.Logger

func (*Vlogger) WriterWithPrefix

func (l *Vlogger) WriterWithPrefix(prefix map[string]string) zerolog.Logger

Jump to

Keyboard shortcuts

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