registry

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrPkgNotRegistered = errors.New("the provided package is not in the registry")

ErrPkgNotRegistered is returned when a package is not in the registry

Functions

func Get

func Get(pkg Package) zap.AtomicLevel

Get returns the atomic log level for the provided package name

func Set

func Set(pkg Package, level zapcore.Level) error

Set a log level for logger instances in the provided package Set returns a non nil error

func SetDefaultLevel

func SetDefaultLevel(level zapcore.Level)

SetDefaultLevel sets the default log level applied to the registry

Types

type Package

type Package string

Package is string representation of a Go package

func GetPackages

func GetPackages() []Package

GetPackages returns all packages in the registry

Jump to

Keyboard shortcuts

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