loglevel

package
v0.4.15 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevel

type LogLevel interface {
	SetLevel(string, time.Duration) error
}

func New

func New(level *zap.AtomicLevel) (LogLevel, error)

type LogLevelService

type LogLevelService struct {
	// contains filtered or unexported fields
}

func (*LogLevelService) SetLevel

func (l *LogLevelService) SetLevel(level string, duration time.Duration) error

note that zap will set log level to "INFO" if level is empty

Jump to

Keyboard shortcuts

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