pkglog

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PackageLogger

type PackageLogger struct {
	Name string
}

PackageLogger is a simple helper type to create named package loggers.

func New

func New(name string) *PackageLogger

New creates a new logger.

func (*PackageLogger) From

func (log *PackageLogger) From(ctx context.Context) logger.Logger

From returns the logger from ctx but with name set to Package logger.

Jump to

Keyboard shortcuts

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