gokitlogger

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevelDebug string = "DEBUG"
	LevelInfo  string = "INFO"
	LevelWarn  string = "WARN"
	LevelError string = "ERROR"
)

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(w io.Writer, options ...Option) gokitlog.Logger

logger := gokitlogger.NewLogger(os.Stdout, gokitlogger.WithJSON(true))

Types

type Option

type Option func(*loggerOptions)

func WithJSON

func WithJSON(json bool) Option

func WithLevel added in v0.1.1

func WithLevel(level string) Option

func WithTimeFormat added in v0.1.1

func WithTimeFormat(layout string) Option

Jump to

Keyboard shortcuts

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