log

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: MIT Imports: 6 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
}

func NewGin added in v0.2.3

func NewGin(op ...GinOption) *Gin

func (*Gin) Errorf added in v0.2.3

func (conf *Gin) Errorf(c *gin.Context, format string, a ...any)

func (*Gin) Infof added in v0.2.3

func (conf *Gin) Infof(c *gin.Context, format string, a ...any)

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

type Level added in v0.2.3

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

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