Error implements logger.Interface
(ctx context.Context, s string, i ...interface{})
| 32 | |
| 33 | // Error implements logger.Interface |
| 34 | func (g GormLogAdapter) Error(ctx context.Context, s string, i ...interface{}) { |
| 35 | level.Error(g.Logging).Log("msg", fmt.Sprintf(s, i...)) |
| 36 | } |
| 37 | |
| 38 | // Trace implements logger.Interface |
| 39 | func (g GormLogAdapter) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error) { |