wlogger

package
v0.0.0-...-2935971 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Color  int
	Avatar string
	Name   string
	Status string

	Webhook *dwhook.Webhook
}

Logger is a logger

func (*Logger) Print

func (l *Logger) Print(in ...interface{}) error

Print prints a message to the webhook using the logic from fmt.Sprint()

func (*Logger) Printf

func (l *Logger) Printf(s string, in ...interface{}) error

Printf prints a message to the webhook using the logic from fmt.Sprintf()

func (*Logger) Send

func (l *Logger) Send(s string, skip int) error

Send sends a single string to the webhook

Jump to

Keyboard shortcuts

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