logging

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Level       string
	Development bool
	Json        bool
	FileRotator FileRotatorConfig
}

func NewDefaultConfig added in v0.2.0

func NewDefaultConfig() Config

type FileRotatorConfig added in v0.2.0

type FileRotatorConfig struct {
	Enabled    bool
	Level      string
	Path       string
	BaseName   string
	MaxAge     time.Duration
	MaxSize    int
	MaxBackups int
	BufferSize int
}

type Params

type Params struct {
	fx.In
	Config Config
}

type Result

type Result struct {
	fx.Out
	Logger  *zap.Logger
	Sugar   *zap.SugaredLogger
	AppHook fx.Hook `group:"app_hooks"`
}

func New

func New(params Params) Result

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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