core

package
v0.1.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 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