logger

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Logger is an exportable variable to be used in log output.
	Logger *zap.Logger
)

Functions

func FieldError

func FieldError(err error) zapcore.Field

FieldError is a function to return a zapcore.Field from an error.

func GetLogger

func GetLogger() *zap.Logger

GetLogger is a function to initialize the zap logger once and return.

Types

This section is empty.

Jump to

Keyboard shortcuts

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