func (l *memoryLog) Write(r log.Record) error {
	l.Buffer.Put(fmt.Sprint(r.Message))
	return nil
}
Write writes logs into logger
package memory
import (
	"fmt"
	"github.com/micro/micro/v3/service/debug/log"
	"github.com/micro/micro/v3/util/ring"
)
type memoryLog struct {
	*ring.Buffer
}
func NewLog(opts ...log.Option) log.Log {
	options := log.DefaultOptions()
	for _, o := range opts {
		o(&options)
	}
	return &memoryLog{
		Buffer: ring.New(options.Size),
	}
}