From 648b81db9539b76a52346c1c5be2b54c4a622956 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Wed, 22 Nov 2017 20:01:52 +0000 Subject: build.sh, etc/build.usage, subr/ex_setup_args.subr: adds -vvv and -vv. subr/ex_rtl_log.subr:ex_log_msg(): adds vvvo and vvfo. --- subr/ex_rtl_log.subr | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'subr/ex_rtl_log.subr') diff --git a/subr/ex_rtl_log.subr b/subr/ex_rtl_log.subr index f4e250a5..31d5cead 100644 --- a/subr/ex_rtl_log.subr +++ b/subr/ex_rtl_log.subr @@ -22,15 +22,23 @@ ex_log_env_vars() { ex_log_msg() { local _lvl="${1}"; shift; - if [ "${_lvl#v}" != "${_lvl}" ]\ + if [ "${_lvl}" = vnfo ]\ && [ ${ARG_VERBOSE:-0} -eq 0 ]; then return; + elif [ "${_lvl}" = vvfo ]\ + && [ ${ARG_VERBOSE1:-0} -eq 0 ]; then + return; + elif [ "${_lvl}" = vvvo ]\ + && [ ${ARG_VERBOSE2:-0} -eq 0 ]; then + return; fi; case "${_lvl}" in failexit) printf "\033[0m\033[${LOG_MSG_FAIL_COLOUR}m"; ;; fail) printf "\033[0m\033[${LOG_MSG_FAIL_COLOUR}m"; ;; info) printf "\033[0m\033[${LOG_MSG_INFO_COLOUR}m"; ;; vnfo) printf "\033[0m\033[${LOG_MSG_INFO_COLOUR}m"; ;; + vvfo) printf "\033[0m\033[${LOG_MSG_INFO_COLOUR}m"; ;; + vvvo) printf "\033[0m\033[${LOG_MSG_INFO_COLOUR}m"; ;; succ) printf "\033[0m\033[${LOG_MSG_SUCC_COLOUR}m"; ;; warn) printf "\033[0m\033[${LOG_MSG_WARN_COLOUR}m"; ;; varn) printf "\033[0m\033[${LOG_MSG_WARN_COLOUR}m"; ;; -- cgit v1.2.3