zap

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: MPL-2.0, MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mixin

type Mixin struct {
	handler.DefaultSession

	*std_zap.Logger

	LogAppend bool   `usage:"Append events to preexisting file instead of truncating it"`
	LogFile   string `usage:"File to receive JSON log events"`
	LogLevel  string
}

func (*Mixin) BindCobraFlags

func (m *Mixin) BindCobraFlags(cmd *cobra.Command) []string

Implements cage/cli/handler.Mixin

func (*Mixin) ErrToFile

func (m *Mixin) ErrToFile(errs ...error)

func (*Mixin) ExitOnErr

func (m *Mixin) ExitOnErr(code int, errs ...error)

func (*Mixin) Name

func (m *Mixin) Name() string

Implements cage/cli/handler/Mixin

func (*Mixin) PostRun

func (m *Mixin) PostRun(ctx context.Context)

Implements cage/cli/handler.PostRun

func (*Mixin) PreRun

func (m *Mixin) PreRun(ctx context.Context, args []string) error

Implements cage/cli/handler.PreRun

Jump to

Keyboard shortcuts

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