log

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultOptions = Options{
	Format: "text",
	Level:  zapcore.InfoLevel,
	Out:    os.Stdout,
}

Functions

func FromContext

func FromContext(ctx context.Context) *zap.Logger

func NewContext

func NewContext(ctx context.Context, l *zap.Logger) context.Context

func NewLoggerWithOptions

func NewLoggerWithOptions(opt Options) (*zap.Logger, error)

Types

type Options

type Options struct {
	Format string
	Level  zapcore.Level
	Out    io.Writer
}

Jump to

Keyboard shortcuts

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