logpipe

package module
v0.1.3 Latest Latest
Warning

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

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

Documentation

Overview

Package logpipe provides a simple facility for interleaving child process output into your existing logs. TODO(tep): Add much better documentation XXX

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogFunc

type LogFunc func(string, ...interface{})

type LogPipe

type LogPipe struct {
	Tag string
	// contains filtered or unexported fields
}

LogPipe is the dispatcher for routing disparate output streams. It's zero value may be used directly or you may use a pointer reference.

func (*LogPipe) Add

func (lp *LogPipe) Add(logFunc LogFunc) (io.Writer, error)

func (*LogPipe) AddTagged

func (lp *LogPipe) AddTagged(tag string, logFunc LogFunc) (io.Writer, error)

func (*LogPipe) Close

func (lp *LogPipe) Close()

func (*LogPipe) MustAdd

func (lp *LogPipe) MustAdd(logFunc LogFunc) io.Writer

func (*LogPipe) MustAddTagged

func (lp *LogPipe) MustAddTagged(tag string, logFunc LogFunc) io.Writer

func (*LogPipe) Run

func (lp *LogPipe) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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