log

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(c context.Context, format string, a ...any)

func Infof

func Infof(c context.Context, format string, a ...any)

Types

type Gin added in v0.2.3

type Gin struct {
	Mode  Mode
	Level Level
	Sign  string
}

func NewGin added in v0.2.3

func NewGin(op ...GinOption) *Gin

func (*Gin) Debugf added in v0.5.2

func (conf *Gin) Debugf(c *gin.Context, format string, a ...interface{})

func (*Gin) Errorf added in v0.2.3

func (conf *Gin) Errorf(c *gin.Context, format string, a ...interface{})

func (*Gin) Fatalf added in v0.5.2

func (conf *Gin) Fatalf(c *gin.Context, format string, a ...interface{})

func (*Gin) Infof added in v0.2.3

func (conf *Gin) Infof(c *gin.Context, format string, a ...interface{})

func (*Gin) Panicf added in v0.5.2

func (conf *Gin) Panicf(c *gin.Context, format string, a ...interface{})

func (*Gin) Warnf added in v0.5.2

func (conf *Gin) Warnf(c *gin.Context, format string, a ...interface{})

type GinOption added in v0.2.3

type GinOption func(c *Gin)

func WithLevel added in v0.2.3

func WithLevel(level Level) GinOption

func WithMode added in v0.2.3

func WithMode(mode Mode) GinOption

func WithSign added in v0.7.3

func WithSign(sign string) GinOption

type Level added in v0.2.3

type Level string
const (
	DebugLevel Level = "debug"
	InfoLevel  Level = "info"
	WarnLevel  Level = "warn"
	ErrorLevel Level = "error"
	PanicLevel Level = "panic"
	FatalLevel Level = "fatal"
)

type Mode added in v0.2.3

type Mode string
const (
	DefaultMode Mode = "default"
	FileMode    Mode = "file"
)

Jump to

Keyboard shortcuts

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