log

package
v0.0.0-...-d9311aa Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Panicf  = logger.Panicf
	Panicln = logger.Panicln

	Fatalf  = logger.Fatalf
	Fatalln = logger.Fatalln

	Print   = logger.Print
	Printf  = logger.Printf
	Println = logger.Println
)

Functions

func Chat

func Chat(id int64, msg *penguin.Message)

func Debug

func Debug(format string, v ...any)

func Error

func Error(format string, v ...any)

func Fatal

func Fatal(format string, v ...any)

func Info

func Info(format string, v ...any)

func Notifyf

func Notifyf(format string, args ...any)

func Panic

func Panic(format string, v ...any)

func Trace

func Trace(format string, v ...any)

func Warn

func Warn(format string, v ...any)

Types

type RotateWriter

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

func New

func New(base string) *RotateWriter

func (*RotateWriter) Rotate

func (w *RotateWriter) Rotate() (err error)

func (*RotateWriter) Write

func (w *RotateWriter) Write(output []byte) (int, error)

Jump to

Keyboard shortcuts

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