options

package
v0.0.0-...-9527ba3 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2017 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MB = 1 << (10 * 2)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevelValue

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

func (*LogLevelValue) Set

func (l *LogLevelValue) Set(s string) error

func (*LogLevelValue) String

func (l *LogLevelValue) String() string

type Loglet

type Loglet struct {
	KafkaBrokers    []string
	KafkaTopic      string
	CursorFile      string
	MaxMessageDelay time.Duration
	MaxMessageSize  int
	MaxMessageCount int
	DefaultFields   map[string]string
	LogLevel        log.Level
	IncludeFilters  []string
	ExcludeFilters  []string

	// testing/debugging
	FakeKafka  bool
	CpuProfile string
	MemProfile string
}

func NewLoglet

func NewLoglet() *Loglet

func (*Loglet) AddFlags

func (l *Loglet) AddFlags()

Jump to

Keyboard shortcuts

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