log

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithPlugin

func WithPlugin(ctx context.Context, plugin string) context.Context

func WithReqID

func WithReqID(ctx context.Context, rqID string) context.Context

func WithSlashCommand

func WithSlashCommand(ctx context.Context, slashcmd string) context.Context

Types

type Logger

type Logger struct {
	*zap.SugaredLogger
}

func AttachVersion

func AttachVersion(v *version.Info) *Logger

func Default

func Default() *Logger

func FromContext

func FromContext(ctx context.Context) *Logger

Logger returns a zap logger with as much context as possible

func (*Logger) Printf

func (l *Logger) Printf(format string, args ...interface{})

func (*Logger) Println

func (l *Logger) Println(args ...interface{})

func (*Logger) WithError

func (l *Logger) WithError(err error) *Logger

Jump to

Keyboard shortcuts

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