Help us shape the future of Go! Take the 2026 Go Developer Survey

core

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigModule = fx.Options(
	fx.Provide(NewConfig),
)

Module provides the logger dependencies

Functions

func NewConfig

func NewConfig() (uber_config.Provider, error)

func NewLogger

func NewLogger(sugar *zap.SugaredLogger) *zap.Logger

func NewSugaredLogger

func NewSugaredLogger(provider config.Provider) (*zap.SugaredLogger, error)

NewSugaredLogger creates a new zap.SugaredLogger based on the configuration

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func (Config) Get

func (c Config) Get(path string) uber_config.Value

func (Config) Name

func (c Config) Name() string

type LoggingConfig

type LoggingConfig struct {
	Level       string   `yaml:"level"`
	Development bool     `yaml:"development"`
	Encoding    string   `yaml:"encoding"`
	OutputPaths []string `yaml:"outputPaths"`
}

LoggingConfig represents the logging configuration from the config files

Jump to

Keyboard shortcuts

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