Documentation ¶
Index ¶
- Variables
- type LoggerType
- func (t *LoggerType) ConfigSentry(hub *sentry.Hub)
- func (t *LoggerType) Debug(args ...any)
- func (t *LoggerType) Debugf(format string, args ...any)
- func (t *LoggerType) Debugln(args ...any)
- func (t *LoggerType) Error(args ...any)
- func (t *LoggerType) Errorf(format string, args ...any)
- func (t *LoggerType) Errorln(args ...any)
- func (t *LoggerType) Fatal(args ...any)
- func (t *LoggerType) Fatalf(format string, args ...any)
- func (t *LoggerType) Fatalln(args ...any)
- func (t *LoggerType) FlushSentry(timeout time.Duration)
- func (t *LoggerType) Info(args ...any)
- func (t *LoggerType) Infof(format string, args ...any)
- func (t *LoggerType) Infoln(args ...any)
- func (t *LoggerType) Panic(args ...any)
- func (t *LoggerType) Panicf(format string, args ...any)
- func (t *LoggerType) Panicln(args ...any)
- func (t *LoggerType) Print(args ...any)
- func (t *LoggerType) Printf(format string, args ...any)
- func (t *LoggerType) Println(args ...any)
- func (t *LoggerType) SetLevel(level logrus.Level)
- func (t *LoggerType) Trace(err error) (isErr bool)
- func (t *LoggerType) Warn(args ...any)
- func (t *LoggerType) Warnf(format string, args ...any)
- func (t *LoggerType) Warning(args ...any)
- func (t *LoggerType) Warningf(format string, args ...any)
- func (t *LoggerType) Warningln(args ...any)
- func (t *LoggerType) Warnln(args ...any)
- func (t *LoggerType) WithError(err error) *logrus.Entry
- func (t *LoggerType) WithField(key string, value any) *logrus.Entry
- func (t *LoggerType) WithFields(fields logrus.Fields) *logrus.Entry
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger = newLogger()
Logger app logger
Functions ¶
This section is empty.
Types ¶
type LoggerType ¶
type LoggerType struct {
// contains filtered or unexported fields
}
func (*LoggerType) ConfigSentry ¶
func (t *LoggerType) ConfigSentry(hub *sentry.Hub)
func (*LoggerType) Debugf ¶
func (t *LoggerType) Debugf(format string, args ...any)
Debugf wrap logrus function
func (*LoggerType) Errorf ¶
func (t *LoggerType) Errorf(format string, args ...any)
Errorf wrap logrus function
func (*LoggerType) Fatalf ¶
func (t *LoggerType) Fatalf(format string, args ...any)
Fatalf wrap logrus function
func (*LoggerType) FlushSentry ¶
func (t *LoggerType) FlushSentry(timeout time.Duration)
func (*LoggerType) Infof ¶
func (t *LoggerType) Infof(format string, args ...any)
Infof wrap logrus function
func (*LoggerType) Panicf ¶
func (t *LoggerType) Panicf(format string, args ...any)
Panicf wrap logrus function
func (*LoggerType) Printf ¶
func (t *LoggerType) Printf(format string, args ...any)
Printf wrap logrus function
func (*LoggerType) SetLevel ¶
func (t *LoggerType) SetLevel(level logrus.Level)
SetLevel set logger level for filtering output
func (*LoggerType) Trace ¶
func (t *LoggerType) Trace(err error) (isErr bool)
Panicln wrap logrus function
func (*LoggerType) Warnf ¶
func (t *LoggerType) Warnf(format string, args ...any)
Warnf wrap logrus function
func (*LoggerType) Warningf ¶
func (t *LoggerType) Warningf(format string, args ...any)
Warningf wrap logrus function
func (*LoggerType) Warningln ¶
func (t *LoggerType) Warningln(args ...any)
Warningln wrap logrus function
func (*LoggerType) WithError ¶
func (t *LoggerType) WithError(err error) *logrus.Entry
WithError wrap logrus function
func (*LoggerType) WithField ¶
func (t *LoggerType) WithField(key string, value any) *logrus.Entry
WithField wrap logrus function
func (*LoggerType) WithFields ¶
func (t *LoggerType) WithFields(fields logrus.Fields) *logrus.Entry
WithFields wrap logrus function
Click to show internal directories.
Click to hide internal directories.