code: func (l *Logger) Close() error {
  	// Will close local/remote syslog connections too :)
  	if closer, ok := l.writer.(io.WriteCloser); ok {
  		l.fileMu.Lock()
  		err := closer.Close()
  		l.fileMu.Unlock()
  		return err
  	}
  
  	return nil
  }
docs: // Close closes open log files or connections to syslog.