chug

package
v0.0.0-...-47c5aa7 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2016 License: Apache-2.0 Imports: 21 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssetServer

func AssetServer(dev bool) http.HandlerFunc

func ChugCommand

func ChugCommand() common.Command

func ChugWithFilter

func ChugWithFilter(reader io.Reader, minTime time.Time, maxTime time.Time, match *regexp.Regexp, exclude *regexp.Regexp) chan chug.Entry

func ParseTimeFlag

func ParseTimeFlag(t string) (time.Time, error)

func Prettify

func Prettify(relativeTime string, data string, hideNonLager bool, minTime time.Time, maxTime time.Time, match *regexp.Regexp, exclude *regexp.Regexp, src io.Reader) error

func ServeChugCommand

func ServeChugCommand() common.Command

func ServeLogs

func ServeLogs(addr string, dev bool, minTime time.Time, maxTime time.Time, match *regexp.Regexp, exclude *regexp.Regexp, src io.Reader) error

func Unify

func Unify(files []io.Reader, out io.Writer, minTime time.Time, maxTime time.Time, match *regexp.Regexp, exclude *regexp.Regexp) error

func UnifyChugCommand

func UnifyChugCommand() common.Command

Types

type JSFriendlyChugEntry

type JSFriendlyChugEntry struct {
	IsLager bool   `json:"is_lager"`
	Raw     string `json:"raw"`
	Log     struct {
		Timestamp int64      `json:"timestamp"`
		LogLevel  string     `json:"level"`
		Source    string     `json:"source"`
		Message   string     `json:"message"`
		Session   string     `json:"session"`
		Error     string     `json:"error,omitempty"`
		Trace     string     `json:"trace,omitempty"`
		Data      lager.Data `json:"data"`
	} `json:"log,omitempty"`
}

func NewJSFriendlyChugEntry

func NewJSFriendlyChugEntry(entry chug.Entry) JSFriendlyChugEntry

Jump to

Keyboard shortcuts

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