wlog

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type URLs

type URLs struct {
	DebugURL string
	InfoURL  string
	WarnURL  string
	ErrorURL string
	PanicURL string
	LogLevel string
}

URLs ...

type Wlog

type Wlog struct {
	Name      string
	AvatarURL string
	// contains filtered or unexported fields
}

Wlog is a wrapper for Zap's sugared logger that also logs to Discord webhooks

func Logger

func Logger(c URLs, level string) *Wlog

Logger creates a new Wlog object

func (*Wlog) Debugf

func (w *Wlog) Debugf(template string, args ...interface{})

Debugf ...

func (*Wlog) Errorf

func (w *Wlog) Errorf(template string, args ...interface{})

Errorf ...

func (*Wlog) Flush

func (w *Wlog) Flush()

Flush sends all buffered embeds

func (*Wlog) Infof

func (w *Wlog) Infof(template string, args ...interface{})

Infof ...

func (*Wlog) Panicf

func (w *Wlog) Panicf(template string, args ...interface{})

Panicf ...

Jump to

Keyboard shortcuts

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