log

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CtxDebugf added in v0.7.7

func CtxDebugf(c *gin.Context, format string, a ...interface{})

func CtxErrorf added in v0.7.7

func CtxErrorf(c *gin.Context, format string, a ...interface{})

func CtxFatalf added in v0.7.7

func CtxFatalf(c *gin.Context, format string, a ...interface{})

func CtxInfof added in v0.7.7

func CtxInfof(c *gin.Context, format string, a ...interface{})

func CtxPanicf added in v0.7.7

func CtxPanicf(c *gin.Context, format string, a ...interface{})

func CtxWarnf added in v0.7.7

func CtxWarnf(c *gin.Context, format string, a ...interface{})

func Debugf added in v0.7.6

func Debugf(format string, a ...interface{})

func Errorf

func Errorf(format string, a ...interface{})

func Fatalf added in v0.7.6

func Fatalf(format string, a ...interface{})

func Infof

func Infof(format string, a ...interface{})

func Panicf added in v0.7.6

func Panicf(format string, a ...interface{})

func Warnf added in v0.7.6

func Warnf(format string, a ...interface{})

Types

type Gin added in v0.2.3

type Gin struct {
	Mode         Mode
	Level        Level
	Sign         string
	IsCloseColor bool
}

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) SetCloseColor added in v0.8.0

func (conf *Gin) SetCloseColor(closeColor bool)

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 WithIsCloseColor added in v0.8.0

func WithIsCloseColor(closeColor bool) GinOption

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