Documentation
¶
Index ¶
Constants ¶
View Source
const EnvPrefix = "LOG"
View Source
const (
Separator = ":"
)
Variables ¶
This section is empty.
Functions ¶
func SetupDefaultLog ¶
func SetupDefaultLog(m ...slogmulti.Middleware)
Types ¶
type Config ¶
type Config struct {
Outputs []string `env:"_OUTPUTS" envDefault:"stderr:json"`
Level slog.Level `env:"_LEVEL" envDefault:"INFO"`
Caller bool `env:"_CALLER" envDefault:"true"`
ErrorFormatting bool `env:"_ERROR_FORMATING" envDefault:"false"`
}
func GetConfigFromEnv ¶
func (*Config) GetHandler ¶
Click to show internal directories.
Click to hide internal directories.