code: func (l *LogFile) Rotate() error {
  	l.Lock()
  	defer l.Unlock()
  	// We close everything first
  	l.Close()
  	if err := l.searchFirstAvPath(); err != nil {
  		return err
  	}
  	f, err := os.OpenFile(l.Path(), os.O_APPEND|os.O_CREATE|os.O_RDWR, l.perm)
  	if err != nil {
  		return err
  	}
  	l.file = f
  	l.writer = gzip.NewWriter(l.file)
  	return nil
  }
docs: // Rotate rotates the current LogFile