log

package
v0.0.0-...-acc543f Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfigLogger

func NewConfigLogger(lc fx.Lifecycle, config *Config) (*zap.Logger, error)

func NewDevLogger

func NewDevLogger(lc fx.Lifecycle) (*zap.Logger, error)

func NewEchoLogger

func NewEchoLogger(logger *zap.Logger) *echoLogger

func NewFXLogger

func NewFXLogger(logger *zap.Logger) fx.Printer

func NewProdLogger

func NewProdLogger(lc fx.Lifecycle) (*zap.Logger, error)

Types

type Config

type Config struct {
	Enabled bool   `yaml:enabled`
	Level   string `yaml:"level"`
}

Jump to

Keyboard shortcuts

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