code: func (lr *logRegistry) ClearRegistry() {
  	var wasErr error
  
  	// range over logger map and store keys
  	lr.loggers.Range(func(k, v interface{}) bool {
  		key, ok := k.(string)
  		if !ok {
  			wasErr = fmt.Errorf("cannot cast log map key to string")
  			// false stops the iteration
  			return false
  		}
  		if key != DefaultLoggerName {
  			lr.loggers.Delete(key)
  		}
  		return true
  	})
  
  	if wasErr != nil {
  		panic(wasErr)
  	}
  }
docs: // ClearRegistry removes all loggers except the default one from registry