Documentation ¶
Index ¶
- func Debug(template string, args ...interface{})
- func DebugWithContext(ctx *gin.Context, template string, args ...interface{})
- func Error(template string, args ...interface{})
- func ErrorWithContext(ctx *gin.Context, template string, args ...interface{})
- func Fatal(template string, args ...interface{})
- func FatalWithContext(ctx *gin.Context, template string, args ...interface{})
- func Info(template string, args ...interface{})
- func InfoWithContext(ctx *gin.Context, template string, args ...interface{})
- func InitLogger()
- func Panic(template string, args ...interface{})
- func PanicWithContext(ctx *gin.Context, template string, args ...interface{})
- func Warn(template string, args ...interface{})
- func WarnWithContext(ctx *gin.Context, template string, args ...interface{})
- type LogConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugWithContext ¶
func ErrorWithContext ¶
func FatalWithContext ¶
func InfoWithContext ¶
func InitLogger ¶
func InitLogger()
func PanicWithContext ¶
func WarnWithContext ¶
Types ¶
type LogConfig ¶
type LogConfig struct { Path string `yaml:"path" json:"path" mapstructure:"path"` Level string `yaml:"level" json:"level" mapstructure:"level"` MaxSize int `yaml:"maxSize" json:"maxSize" mapstructure:"maxSize"` MaxBackups int `yaml:"maxBackups" json:"maxBackups" mapstructure:"maxBackups"` MaxAge int `yaml:"maxAge" json:"maxAge" mapstructure:"maxAge"` Compress bool `yaml:"compress" json:"compress" mapstructure:"compress"` }
Click to show internal directories.
Click to hide internal directories.