log

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Confirm

func Confirm(ps string) (string, error)

func Debug

func Debug(a ...interface{})

func Debugf

func Debugf(format string, a ...interface{})

func Debugln

func Debugln(a ...interface{})

func Error

func Error(a ...interface{})

func Errorf

func Errorf(format string, a ...interface{})

func Errorln

func Errorln(a ...interface{})

func Info

func Info(a ...interface{})

func Infof

func Infof(format string, a ...interface{})

func Infoln

func Infoln(a ...interface{})

func Prompt

func Prompt(a ...interface{})

func PromptSecret

func PromptSecret(ps string) (string, error)

func Promptf

func Promptf(format string, a ...interface{})

func Promptln

func Promptln(a ...interface{})

func SetDebugEnabled

func SetDebugEnabled(b bool)

func SetErrorEnabled

func SetErrorEnabled(b bool)

func SetInfoEnabled

func SetInfoEnabled(b bool)

func SetPromptEnabled

func SetPromptEnabled(b bool)

Types

type Printer

type Printer interface {
	SetEnabled(bool)
	Printf(string, ...interface{})
	Print(...interface{})
	Println(...interface{})
}

Printer represents a simple logger interface

func NewPrinter

func NewPrinter(w io.Writer) Printer

NewPrinter creates a logger with the specified writer.

Jump to

Keyboard shortcuts

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