code: func NewRingLogger(driver Logger, logInfo Info, maxSize int64) Logger {
  	if maxSize < 0 {
  		maxSize = defaultRingMaxSize
  	}
  	l := newRingLogger(driver, logInfo, maxSize)
  	if _, ok := driver.(LogReader); ok {
  		return &ringWithReader{l}
  	}
  	return l
  }
docs: // NewRingLogger creates a new Logger that is implemented as a RingBuffer wrapping
  // the passed in logger.