web

package
v0.0.3-beta Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2024 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command() []*cli.Command

func Init

func Init()

func Start

func Start()

Types

type EchoLogger

type EchoLogger struct {
	Logger    *slog.Logger
	SlogLevel slog.Level
}

func EchoLoggerHeadAdaptor

func EchoLoggerHeadAdaptor() *EchoLogger

func (*EchoLogger) Debug

func (l *EchoLogger) Debug(i ...interface{})

func (*EchoLogger) Debugf

func (l *EchoLogger) Debugf(format string, args ...interface{})

func (*EchoLogger) Debugj

func (l *EchoLogger) Debugj(j log.JSON)

func (*EchoLogger) Error

func (l *EchoLogger) Error(i ...interface{})

func (*EchoLogger) Errorf

func (l *EchoLogger) Errorf(format string, args ...interface{})

func (*EchoLogger) Errorj

func (l *EchoLogger) Errorj(j log.JSON)

func (*EchoLogger) Fatal

func (l *EchoLogger) Fatal(i ...interface{})

func (*EchoLogger) Fatalf

func (l *EchoLogger) Fatalf(format string, args ...interface{})

func (*EchoLogger) Fatalj

func (l *EchoLogger) Fatalj(j log.JSON)

func (*EchoLogger) Info

func (l *EchoLogger) Info(i ...interface{})

func (*EchoLogger) Infof

func (l *EchoLogger) Infof(format string, args ...interface{})

func (*EchoLogger) Infoj

func (l *EchoLogger) Infoj(j log.JSON)

func (*EchoLogger) Level

func (l *EchoLogger) Level() log.Lvl

func (*EchoLogger) Output

func (l *EchoLogger) Output() io.Writer

func (*EchoLogger) Panic

func (l *EchoLogger) Panic(i ...interface{})

func (*EchoLogger) Panicf

func (l *EchoLogger) Panicf(format string, args ...interface{})

func (*EchoLogger) Panicj

func (l *EchoLogger) Panicj(j log.JSON)

func (*EchoLogger) Prefix

func (l *EchoLogger) Prefix() string

func (*EchoLogger) Print

func (l *EchoLogger) Print(i ...interface{})

func (*EchoLogger) Printf

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

func (*EchoLogger) Printj

func (l *EchoLogger) Printj(j log.JSON)

func (*EchoLogger) SetHeader

func (l *EchoLogger) SetHeader(h string)

func (*EchoLogger) SetLevel

func (l *EchoLogger) SetLevel(v log.Lvl)

func (*EchoLogger) SetOutput

func (l *EchoLogger) SetOutput(w io.Writer)

SetOutput 设置日志记录器的输出

func (*EchoLogger) SetPrefix

func (l *EchoLogger) SetPrefix(p string)

func (*EchoLogger) Warn

func (l *EchoLogger) Warn(i ...interface{})

func (*EchoLogger) Warnf

func (l *EchoLogger) Warnf(format string, args ...interface{})

func (*EchoLogger) Warnj

func (l *EchoLogger) Warnj(j log.JSON)

Jump to

Keyboard shortcuts

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