logger

package
Version: v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf added in v0.2.0

func Errorf(message string, args ...interface{})

func InitLogger added in v0.2.0

func InitLogger(longestJob int, remoteLog io.WriteCloser)

func Log

func Log(job node.Node, message string)

func LogDebug added in v0.2.0

func LogDebug(job node.Node, message string)

func LogError added in v0.2.0

func LogError(job node.Node, message string)

func LogJob

func LogJob(callback func(*job.Job) error) func(*job.Job) error

func LogSuccess added in v0.2.0

func LogSuccess(job node.Node, message string)

func LogWriter

func LogWriter(job node.Node) io.Writer

func LogWriterError

func LogWriterError(job node.Node) io.Writer

func LoggerForJob added in v0.2.0

func LoggerForJob(job node.Node) *log.Entry

func Printf

func Printf(message string, args ...interface{})

func Successf added in v0.2.0

func Successf(message string, args ...interface{})

Types

type LogHandler added in v0.2.0

type LogHandler struct {
	LongestJob int
	// contains filtered or unexported fields
}

func (*LogHandler) HandleLog added in v0.2.0

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

HandleLog implements log.Handler.

type LogIOWriter added in v0.2.0

type LogIOWriter struct {
	Logger func(string)
	// contains filtered or unexported fields
}

func (*LogIOWriter) Write added in v0.2.0

func (w *LogIOWriter) Write(b []byte) (int, error)

Source Files

Jump to

Keyboard shortcuts

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