log

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	GetLevel() Level
	Debug(string, ...any)
	Info(string, ...any)
	Warning(string, ...any)
	Error(string, ...any)
}

func New

func New(level Level) Interface

type Level

type Level int8
const (
	Debug Level = iota
	Info
	Warning
	Error
	Silent
)

func (*Level) Set

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

func (*Level) String

func (e *Level) String() string

These functions are used for the cobra CLI tool to parse user specified log level

func (*Level) Type

func (e *Level) Type() string

Jump to

Keyboard shortcuts

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