log

package
v0.0.0-...-70db0ab Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ColorNone is the color of normal stdout.
	ColorNone = none

	// ColorDebug is the color sequence uses for
	// debug output.
	ColorDebug = blue

	// ColorInfo is the color sequence uses for
	// info output.
	ColorInfo = cyan

	// ColorWarn is the color sequence uses for
	// warn output.
	ColorWarn = yellow

	// ColorError is the color sequence uses for
	// error output.
	ColorError = red

	// ColorNotice is the color sequence uses for
	// notice output.
	ColorNotice = gray
)

Functions

func Debug

func Debug(s string)

func Debugf

func Debugf(s string, v ...interface{})

func Info

func Info(s string)

func Infof

func Infof(s string, v ...interface{})

func SetVerbose

func SetVerbose(v bool)

func Writer

func Writer() io.Writer

Types

type Logger

type Logger interface {
	io.Writer
	SetVerbose(bool) Logger
	Debug(string)
	Debugf(string, ...interface{})
	Info(string)
	Infof(string, ...interface{})
}

func New

func New(o io.Writer) Logger

Jump to

Keyboard shortcuts

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