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

logger

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger

func InitLogger(config Config, out io.Writer)

Types

type Config

type Config struct {
	Level  zerolog.Level
	Format LogFormat
}

type LogFormat

type LogFormat int8
const (
	FormatConsole LogFormat = iota
	FormatJSON
)

func (LogFormat) MarshalText

func (l LogFormat) MarshalText() ([]byte, error)

func (LogFormat) String

func (l LogFormat) String() string

func (*LogFormat) UnmarshalText

func (l *LogFormat) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

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