Documentation ¶
Index ¶
- func CtxDebugf(c *gin.Context, format string, a ...interface{})
- func CtxErrorf(c *gin.Context, format string, a ...interface{})
- func CtxFatalf(c *gin.Context, format string, a ...interface{})
- func CtxInfof(c *gin.Context, format string, a ...interface{})
- func CtxPanicf(c *gin.Context, format string, a ...interface{})
- func CtxWarnf(c *gin.Context, format string, a ...interface{})
- func Debugf(format string, a ...interface{})
- func Errorf(format string, a ...interface{})
- func Fatalf(format string, a ...interface{})
- func Infof(format string, a ...interface{})
- func Panicf(format string, a ...interface{})
- func Warnf(format string, a ...interface{})
- type Gin
- func (conf *Gin) Debugf(c *gin.Context, format string, a ...interface{})
- func (conf *Gin) Errorf(c *gin.Context, format string, a ...interface{})
- func (conf *Gin) Fatalf(c *gin.Context, format string, a ...interface{})
- func (conf *Gin) Infof(c *gin.Context, format string, a ...interface{})
- func (conf *Gin) Panicf(c *gin.Context, format string, a ...interface{})
- func (conf *Gin) SetCloseColor(closeColor bool)
- func (conf *Gin) Warnf(c *gin.Context, format string, a ...interface{})
- type GinOption
- type Level
- type Mode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Gin ¶ added in v0.2.3
type Gin struct { Mode Mode Level Level Sign string IsCloseColor bool FilePathCutLength int // 截掉文件路径头部长度 }
func (*Gin) SetCloseColor ¶ added in v0.8.0
type GinOption ¶ added in v0.2.3
type GinOption func(c *Gin)
func WithFilePathCutLength ¶ added in v0.10.13
func WithIsCloseColor ¶ added in v0.8.0
Click to show internal directories.
Click to hide internal directories.