log

package
v0.0.0-...-b188132 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

func GetLogger(pkg string) *logrus.Entry

func SetLogLevel

func SetLogLevel(lvl logrus.Level)

Types

type EventualLogger

type EventualLogger []string

EventualLogger -- a structure to buffer log entries whose usefulnes cannot be determined at creation time (but only eventually)

func (*EventualLogger) Flush

func (l *EventualLogger) Flush(target *logrus.Entry)

Flush -- writes out everything from buffer

func (*EventualLogger) FlushToFile

func (l *EventualLogger) FlushToFile(nameHint string)

func (*EventualLogger) FlushToString

func (l *EventualLogger) FlushToString() (s string)

func (*EventualLogger) Queuef

func (l *EventualLogger) Queuef(format string, args ...interface{})

Queuef -- buffers the interpreted message to be written later

Jump to

Keyboard shortcuts

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