logging

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 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