logging

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Provide(
	func(params mfx.AppParams) (logger *zap.Logger, err error) {
		logger, err = NewLogger(params.Deployment)
		return
	},
)

Module provides a zap logger in container.

Functions

func NewLogger

func NewLogger(deployment string) (logger *zap.Logger, err error)

NewLogger creates a new logger based on the deployment environment.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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