log

package
v0.0.0-...-4c0c8b4 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hook

type Hook struct {
	// contains filtered or unexported fields
}

Hook to handle writing to local log files.

func NewHook

func NewHook() *Hook

NewHook returns a torpedo color formatting hook.

func (*Hook) Fire

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

Fire color codes the output.

func (*Hook) Levels

func (hook *Hook) Levels() []logrus.Level

Levels returns the various logrus levels this hooks into.

func (*Hook) SetFormatter

func (hook *Hook) SetFormatter(formatter logrus.Formatter)

SetFormatter sets the log formatter.

Jump to

Keyboard shortcuts

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