logutil

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

func GetLogger(name string, logToTerminal bool) *logrus.Logger

func PrintDoneMessage added in v0.1.1

func PrintDoneMessage(message string, log io.Writer)

func PrintFailMessage added in v0.1.1

func PrintFailMessage(message string, log io.Writer)

Types

type LoadingText added in v0.1.1

type LoadingText struct {
	Log     io.Writer
	Message string
	// contains filtered or unexported fields
}

func NewLoadingText added in v0.1.1

func NewLoadingText(message string, log io.Writer) *LoadingText

func (*LoadingText) Done added in v0.1.1

func (l *LoadingText) Done()

type TerminalHook

type TerminalHook struct {
	LogLevels []logrus.Level
}

func (TerminalHook) Fire

func (hook TerminalHook) Fire(entry *logrus.Entry) error

func (TerminalHook) Levels

func (hook TerminalHook) Levels() []logrus.Level

Jump to

Keyboard shortcuts

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