utils

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type ColoredFormatter

type ColoredFormatter struct{}

func (*ColoredFormatter) Format

func (f *ColoredFormatter) Format(entry *logrus.Entry) ([]byte, error)

type ProtocolLogger

type ProtocolLogger struct{}

protocolLogger from https://github.com/Mrs4s/go-cqhttp/blob/a5923f179b360331786a6509eb33481e775a7bd1/cmd/gocq/main.go#L501

func (ProtocolLogger) Debug

func (p ProtocolLogger) Debug(format string, arg ...any)

func (ProtocolLogger) Dump

func (p ProtocolLogger) Dump(data []byte, format string, arg ...any)

func (ProtocolLogger) Error

func (p ProtocolLogger) Error(format string, arg ...any)

func (ProtocolLogger) Info

func (p ProtocolLogger) Info(format string, arg ...any)

func (ProtocolLogger) Warning

func (p ProtocolLogger) Warning(format string, arg ...any)

Jump to

Keyboard shortcuts

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