logging

package
v0.0.0-...-03eeb13 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(w io.Writer, jsonLogging bool, logLevel, version string)

func ErrorStackMarshaler

func ErrorStackMarshaler(err error) interface{}

Types

type InitHook

type InitHook struct {
	DisableJSONLogging bool   `desc:"Disable JSON logging."`
	LogLevel           string `required:"true" desc:"Log level, must be one of: trace,debug,info,warn,error,fatal,panic"`
}

InitHook is the command executor for the "devbot" command.

func (*InitHook) PreRun

func (c *InitHook) PreRun(_ context.Context) error

type SentryFlushHook

type SentryFlushHook struct {
	Timeout time.Duration
}

func (*SentryFlushHook) PostRun

type SentryInitHook

type SentryInitHook struct {
	DSN string `desc:"Sentry DSN"`
}

func (*SentryInitHook) PreRun

func (h *SentryInitHook) PreRun(ctx context.Context) error

type ZeroLogLogrAdapter

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

func (*ZeroLogLogrAdapter) Enabled

func (a *ZeroLogLogrAdapter) Enabled(level int) bool

func (*ZeroLogLogrAdapter) Error

func (a *ZeroLogLogrAdapter) Error(err error, msg string, keysAndValues ...interface{})

func (*ZeroLogLogrAdapter) Info

func (a *ZeroLogLogrAdapter) Info(_ int, msg string, keysAndValues ...interface{})

func (*ZeroLogLogrAdapter) Init

func (a *ZeroLogLogrAdapter) Init(_ logr.RuntimeInfo)

func (*ZeroLogLogrAdapter) WithName

func (a *ZeroLogLogrAdapter) WithName(_ string) logr.LogSink

func (*ZeroLogLogrAdapter) WithValues

func (a *ZeroLogLogrAdapter) WithValues(keysAndValues ...interface{}) logr.LogSink

Jump to

Keyboard shortcuts

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