func (lfr *LogFormatRegistry) Register(name string, logger logr.Logger) error {
	if lfr.frozen {
		return fmt.Errorf("log format is frozen, unable to register log format")
	}
	if _, ok := lfr.registry[name]; ok {
		return fmt.Errorf("log format: %s already exists", name)
	}
	lfr.registry[name] = logger
	return nil
}
// Register new log format registry to global logRegistry
Register new log format registry to global logRegistry
// Register new log format registry to global logRegistry
func (lfr *LogFormatRegistry) Register(name string, logger logr.Logger) error {
	if lfr.frozen {
		return fmt.Errorf("log format is frozen, unable to register log format")
	}
	if _, ok := lfr.registry[name]; ok {
		return fmt.Errorf("log format: %s already exists", name)
	}
	lfr.registry[name] = logger
	return nil
}
func ( lfr * LogFormatRegistry ) Register ( name string , logger logr . Logger ) error { if lfr . frozen { return fmt . Errorf ( " " ) } if _ , ok := lfr . registry [ name ] ; ok { return fmt . Errorf ( " " , name ) } lfr . registry [ name ] = logger return nil }
Register new log format registry to global logRegistry
Register new log format registry to global logRegistry