<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_config_dir(path, pattern="*.config", configspec=None, allow_errors=False):
 	""" 	Load an entire directory of configuration files, merging them into one. 	This function will load multiple configuration files matching the given pattern, 	in the given path, and merge them. The found files are first sorted alphabetically, 	and then loaded and merged. A good practice is to use ConfigObj sections, for easy 	loading of information like per-host configuration. 	Parameters 	path: string 		Absolute path to a directory of ConfigObj files 	pattern: string 		Globbing pattern used to find files. Defaults to *.config. 	configspec: ConfigObj 		Used to sanitize the values in the resulting ConfigObj. Validation errors are currently 		not exposed to the caller. 	allow_errors: boolean 		If False, errors raised by ConfigObj are not caught. 		If True, errors raise by ConfigObj are caught, and an error is logged using logger. 	"""


	logger = logging.getLogger(__name__)

	logger.debug("Loading all files matching {0} in {1}".format(pattern, path))
	files = Globber(path, include=[pattern], recursive=False).glob()
	files = sorted(files)

	config = ConfigObj()

	for filename in files:
		logger.debug("- Loading config for {0}".format(filename))
		try:
			conf = ConfigObj(filename, configspec=configspec)
		except ConfigObjError, coe:
			logger.error("An error occurred while parsing {0}: {1}".format(filename, str(coe)))
			continue
		if configspec:
			conf.validate(Validator())
		config.merge(conf)

	return config