logger

package
v0.0.0-...-7c35933 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const ProviderName = "logger"

Variables

Functions

func Factory

func Factory(cfg *Config) (*slog.Logger, error)

Types

type Config

type Config struct {
	Level  string       `hcl:"level"`
	Format OutputFormat `hcl:"format"`
	Stdout StdOutput    `hcl:"stdout"`
}

func ConfigProvider

func ConfigProvider(cfg *fabric.Configuration) (*Config, error)

type OutputFormat

type OutputFormat string
const (
	OutputFormatAuto    OutputFormat = "auto"
	OutputFormatJSON    OutputFormat = "json"
	OutputFormatConsole OutputFormat = "console"
)

type StdOutput

type StdOutput string
const (
	StdOutputStdout StdOutput = "stdout"
	StdOutputStderr StdOutput = "stderr"
)

Jump to

Keyboard shortcuts

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