logging

package
v0.0.0-...-5515e0f Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() fx.Option

Types

type Config

type Config struct {
	Level     logrus.Level
	Formatter logrus.Formatter
	Output    io.Writer
}

func NewConfig

func NewConfig(s *setting.Setting) (*Config, error)

type Logging

type Logging struct {
	module.DefaultProvider
	Config *Config
}

func New

func New(config *Config) *Logging

func (*Logging) Init

func (p *Logging) Init() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳