logger

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fatal

func Fatal(err error)

func From

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

func Init

func Init() error

func New

func New() *zap.Logger

func Sync

func Sync() error

func WithLogger

func WithLogger(parent context.Context, logger *zap.Logger) context.Context

Types

type StdLogger

type StdLogger interface {
	Print(v ...any)
	Printf(format string, v ...any)
	Println(v ...any)
}

func Std

func Std(scope string) StdLogger

Jump to

Keyboard shortcuts

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