Back to godoc.org

Package zap

v0.1.1
Latest Go to latest

The highest tagged major version is .

Published: Feb 23, 2020 | Licenses: MPL-2.0 , MPL-2.0 | Module: github.com/codeactual/transplant

Index

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier