Versions in this module Expand all Collapse all v1 v1.0.2 Oct 22, 2020 v1.0.1 Sep 14, 2020 v1.0.0 Jul 6, 2020 Changes in this version + const ServerTypeCron + const ServerTypeHTTP + const ServerTypeMQ + func NewHerContext(c *gin.Context) *herContext + type Context struct + Log ILog + ToolBox component.IToolBox + Type string + func GetContext(c *gin.Context) *Context + func GetCronContext() *Context + func GetMQContext(msg string) *Context + func (c *Context) CheckStruct(data interface{}) error + func (c *Context) Put() + func (h Context) GetBody() string + type FileSplitHook struct + func NewFileSplitHook() *FileSplitHook + func (f *FileSplitHook) Fire(e *logrus.Entry) (err error) + func (f *FileSplitHook) Levels() []logrus.Level + type Formatter struct + LogFormat string + TimestampFormat string + func (f *Formatter) Format(entry *logrus.Entry) ([]byte, error) + type ILog interface + Debug func(args ...interface{}) + Debugf func(format string, args ...interface{}) + Debugln func(args ...interface{}) + Error func(args ...interface{}) + Errorf func(format string, args ...interface{}) + Errorln func(args ...interface{}) + Fatal func(args ...interface{}) + Fatalf func(format string, args ...interface{}) + Fatalln func(args ...interface{}) + Info func(args ...interface{}) + Infof func(format string, args ...interface{}) + Infoln func(args ...interface{}) + Warn func(args ...interface{}) + Warnf func(format string, args ...interface{}) + Warnln func(args ...interface{}) + type Logger struct + func NewLogger() *Logger + func (l *Logger) Debug(args ...interface{}) + func (l *Logger) Debugf(format string, args ...interface{}) + func (l *Logger) Debugln(args ...interface{}) + func (l *Logger) Error(args ...interface{}) + func (l *Logger) Errorf(format string, args ...interface{}) + func (l *Logger) Errorln(args ...interface{}) + func (l *Logger) Fatal(args ...interface{}) + func (l *Logger) Fatalf(format string, args ...interface{}) + func (l *Logger) Fatalln(args ...interface{}) + func (l *Logger) Info(args ...interface{}) + func (l *Logger) Infof(format string, args ...interface{}) + func (l *Logger) Infoln(args ...interface{}) + func (l *Logger) Warn(args ...interface{}) + func (l *Logger) Warnf(format string, args ...interface{}) + func (l *Logger) Warnln(args ...interface{}) + type Response struct