logging

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module(
	"sprout:logging",
	fx.Provide(func(logger *zap.Logger) logr.Logger {
		return zapr.NewLogger(logger)
	}),
)

Module provides logging. It will initialize a logger based on the environment, such as using a pretty console logger in development mode.

Functions

func CreateRootLogger

func CreateRootLogger() (*zap.Logger, error)

CreateRootLogger creates the root logger of the application.

func Logger

func Logger(name ...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