logging

package
v0.0.5-beta.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDevelopmentConfig

func NewDevelopmentConfig() zap.Config

func NewProductionConfig

func NewProductionConfig() zap.Config

func NewZapConfig

func NewZapConfig(c Config) zap.Config

Types

type Config

type Config struct {
	Level       string
	Development bool
	Json        bool
}

func NewDefault

func NewDefault() Config

type Params

type Params struct {
	fx.In
	Config zap.Config
}

type Result

type Result struct {
	fx.Out
	Logger *zap.Logger
	Sugar  *zap.SugaredLogger
}

func New

func New(params Params) (Result, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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