include base.util.BaseUtil
include string.util.StringUtil

LoggerUtil(){
	getLogMsg(){
		local time=$(BaseUtil timestamp log)

		echo "[${time}] [ $(StringUtil toUpperCase ${1}) ] $(StringUtil
			replace $(StringUtil capitalize ${2}) - space)"
	}

	$@
}
include array.util.ArrayUtil
include base.util.BaseUtil
include string.util.StringUtil

LoggerUtil(){
	_formatLogLevel(){
		logLevel=${1}
		validLogLevels=(info error)

		maxLength=$(ArrayUtil returnMaxLength ${validLogLevels[@]})

		while [[ $(BaseComparator isLessThan $(StringUtil length ${logLevel}) ${maxLength}) ]]; do
			logLevel+=_
		done

		StringUtil toUpperCase ${logLevel}
	}

	getLogMsg(){
		local time=$(BaseUtil timestamp log)

		echo "[${time}] [ $(StringUtil toUpperCase ${1}) ] $(StringUtil
			replace $(StringUtil capitalize ${2}) - space)"
	}

	$@
}
Add method to format log level so that all log levels print with the same length within brackets
Add method to format log level so that all log levels print with the same length within brackets
