logging

package
v3.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2025 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

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

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

func DocsURL(relativePath string) string

func GetLogger

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

func GetMinorSemver

func GetMinorSemver() string

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

func GetSemverInfo

func GetSemverInfo() string

func Info

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

func Warn

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

func WarnDeprecated

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
JackTT - Gopher 🇻🇳