Help us shape the future of Go! Take the 2026 Go Developer Survey

servicelogger

package
v0.81.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Dev = "dev"

Variables

This section is empty.

Functions

func EmptyLogger

func EmptyLogger() *log.Helper

func InitZapLogger

func InitZapLogger(env string) (log.Logger, error)

func LogAndMaskErr

func LogAndMaskErr(in error, logger *log.Helper) error

LogAndMaskErr records an error but masks it with a generic one to avoid leaking sensitive information

func ScopedHelper

func ScopedHelper(logger log.Logger, scope string) *log.Helper

ScopedHelper returns a new helper with information about the current component

Types

This section is empty.

Jump to

Keyboard shortcuts

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