log

package
v0.0.19 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const FancyPrefix = "\033[0G\033[2K"

Variables

View Source
var Colors = map[string]*color.Color{
	"warn":  color.New(color.FgYellow),
	"error": color.New(color.FgRed),
	"info":  color.New(color.FgHiWhite),
	"debug": color.New(color.FgHiBlack),
}

Functions

func NewFancyLogger

func NewFancyLogger(w io.Writer) log.Logger

Types

type Logger

type Logger struct {
	log.Logger
}

func New

func New() *Logger

func (*Logger) SetOptions

func (l *Logger) SetOptions(debug bool, logFormat string) error

Jump to

Keyboard shortcuts

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