output

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FormatPretty = "pretty"
	FormatJSON   = "json"
	FormatLogfmt = "logfmt"
	FormatTable  = "table"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Printer

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

func NewPrinter

func NewPrinter(format string, useColor bool) *Printer

func NewPrinterWriter

func NewPrinterWriter(format string, useColor bool, w io.Writer) *Printer

func (*Printer) Flush

func (p *Printer) Flush()

func (*Printer) Print

func (p *Printer) Print(e source.LogEntry) error

Jump to

Keyboard shortcuts

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