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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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