log

package
v0.0.0-...-3f58490 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: GPL-3.0 Imports: 2 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 string
const (
	LogLevelDebug LogLevel = "debug"
	LogLevelInfo  LogLevel = "info"
	LogLevelWarn  LogLevel = "warn"
	LogLevelError LogLevel = "error"
)

func (*LogLevel) Set

func (e *LogLevel) Set(v string) error

Set must have pointer receiver so it doesn't change the value of a copy

func (*LogLevel) String

func (e *LogLevel) String() string

String is used both by fmt.Print and by Cobra in help text

func (*LogLevel) ToSlogLevel

func (e *LogLevel) ToSlogLevel() slog.Level

func (*LogLevel) Type

func (e *LogLevel) Type() string

Type is only used in help text

Jump to

Keyboard shortcuts

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