logger

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compat

func Compat() (*log.Logger, error)

func L

func L() *zap.Logger

func New

func New(opt LoggerOpt) (*zap.Logger, error)

func S

func S() *zap.SugaredLogger

Types

type LoggerOpt

type LoggerOpt struct {
	Debug bool
	Color bool

	// TODO
	Encoding string
}

Jump to

Keyboard shortcuts

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