structured

package
v0.0.0-...-b631e0d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apex

func Apex()

Apex has a number of useful tricks

func Logrus

func Logrus()

Logrus demonstrates some basic logrus functionality

func ThrowError

func ThrowError() error

ThrowError throws an error that we'll trace

Types

type CustomHandler

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

CustomHandler splits to two streams

func (*CustomHandler) HandleLog

func (h *CustomHandler) HandleLog(e *log.Entry) error

HandleLog adds a hook and does the emitting

type Hook

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

Hook will implement the logrus hook interface

func (*Hook) Fire

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

Fire will trigger whenever you log

func (*Hook) Levels

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

Levels is what levels this hook will fire on

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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