package sravni import ( "context" "fmt" "log/slog" ) type restyCtxLogger struct { ctx context.Context log *slog.Logger } func (l restyCtxLogger) Debugf(format string, v ...any) { msg := fmt.Sprintf(format, v...) l.log.DebugContext(l.ctx, msg) } func (l restyCtxLogger) Warnf(format string, v ...any) { msg := fmt.Sprintf(format, v...) l.log.WarnContext(l.ctx, msg) } func (l restyCtxLogger) Errorf(format string, v ...any) { msg := fmt.Sprintf(format, v...) l.log.ErrorContext(l.ctx, msg) }