logging

package
v0.0.0-...-f01c647 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(ctx context.Context) *zap.Logger

func SetLogLevel

func SetLogLevel(level string) error

Types

type Config

type Config struct {
	Level Level
}

type Level

type Level string
const (
	DebugLevel   Level = "debug"
	InfoLevel    Level = "info"
	WarnLevel    Level = "warn"
	ErrorLevel   Level = "error"
	FatalLevel   Level = "fatal"
	DefaultLevel Level = InfoLevel
)

func AllowedLogLevels

func AllowedLogLevels() []Level

Jump to

Keyboard shortcuts

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