Documentation ¶
Index ¶
- func GetBreakerHosts(zkHosts []string) (hosts []string)
- func StackTrace(deep int) (stack string)
- func StackTracePanic() (stack string)
- type LoggerGorm
- func (l LoggerGorm) Error(_ context.Context, s string, i ...interface{})
- func (l LoggerGorm) Info(_ context.Context, s string, i ...interface{})
- func (l *LoggerGorm) LogMode(level logger.LogLevel) logger.Interface
- func (l LoggerGorm) Trace(_ context.Context, begin time.Time, fc func() (string, int64), err error)
- func (l LoggerGorm) Warn(_ context.Context, s string, i ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBreakerHosts ¶
func StackTrace ¶
func StackTracePanic ¶
func StackTracePanic() (stack string)
Types ¶
type LoggerGorm ¶
type LoggerGorm struct { LogLevel logger.LogLevel SlowThreshold time.Duration // contains filtered or unexported fields }
func NewLoggerGorm ¶
func NewLoggerGorm(slowThreshold time.Duration) *LoggerGorm
Click to show internal directories.
Click to hide internal directories.