lxlogrus

package
v0.0.0-...-a9e7080 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogCommand

func LogCommand(cmd *exec.Cmd, asDebug bool)

Types

type AddTraceHook

type AddTraceHook struct {
	Full bool
}

func (*AddTraceHook) Fire

func (h *AddTraceHook) Fire(entry *logrus.Entry) error

func (*AddTraceHook) Levels

func (h *AddTraceHook) Levels() []logrus.Level

type TeeHook

type TeeHook struct {
	W io.Writer
}

func (*TeeHook) Fire

func (h *TeeHook) Fire(entry *logrus.Entry) error

func (*TeeHook) Levels

func (h *TeeHook) Levels() []logrus.Level

Jump to

Keyboard shortcuts

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