logging

package
v2.49.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: BSD-3-Clause Imports: 10 Imported by: 5

Documentation

Index

Constants

View Source
const (
	LogKeyBaseDir       = "base-dir"
	LogKeyDir           = "dir"
	LogKeyDryRun        = "dry-run"
	LogKeyFile          = "file"
	LogKeyInterface     = "interface"
	LogKeyImport        = "import"
	LogKeyPath          = "path"
	LogKeyQualifiedName = "qualified-name"
	LogKeyPackageName   = "package-name"
)

Variables

View Source
var ErrPkgNotExist = errors.New("package does not exist")
View Source
var SemVer = ""

SemVer is the version of mockery at build time.

Functions

func DocsURL added in v2.23.4

func DocsURL(relativePath string) string

func GetLogger added in v2.21.0

func GetLogger(levelStr string) (zerolog.Logger, error)

func GetMinorSemver added in v2.23.4

func GetMinorSemver() string

GetMinorSemver returns the semantic version up to and including the minor version.

func GetSemverInfo added in v2.21.0

func GetSemverInfo() string

func Info added in v2.48.0

func Info(ctx context.Context, prefix string, message string, fields map[string]any)

func Warn added in v2.48.0

func Warn(ctx context.Context, prefix string, message string, fields map[string]any)

func WarnDeprecated added in v2.48.0

func WarnDeprecated(ctx context.Context, message string, fields map[string]any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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