logs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(config Logs) error

Types

type Logs

type Logs struct {
	LogLevel         string `env:"LOG_LEVEL" envDefault:"INFO"`
	LogTimestampUnit string `env:"LOG_TIMESTAMP_UNIT" envDefault:"MILLISECONDS"`
	Pretty           bool   `env:"PRETTY_LOGS" envDefault:"false"`
	ServiceName      string `env:"SERVICE_NAME" envDefault:"_"`
	Environment      string `env:"ENVIRONMENT" envDefault:"dev"`
}

Jump to

Keyboard shortcuts

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