log

package
v0.0.0-...-fb72fe2 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2019 License: Apache-2.0 Imports: 8 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) FlushExt

func (l *EventualLogger) FlushExt(target *logrus.Entry, prefix string)

FlushPrefixed -- just like Flush(), applies the specified prefix to all lines

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