From 32c3dcfe929096fce9f3847312da9dfc50613631 Mon Sep 17 00:00:00 2001 From: Akhil Jalagam Date: Fri, 28 Sep 2018 11:39:57 +0530 Subject: [PATCH 1/2] debug level doc added --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 6a3f560..93ba7eb 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ Fred Palmer log_info "I have you now!"; log_success "You're all clear kid, now let's blow this thing and go home."; log_error "One thing's for sure, we're all gonna be a lot thinner."; + log_debug "It's time to dig it...Lets go..."; # If you have figlet installed -- you'll see some big letters on the screen! log_captains "What was in the captain's toilet?"; @@ -54,6 +55,10 @@ Fred Palmer * **log_error** Prints an "ERROR" level message to stdout with the timestamp of the occurrence. + +* **log_debug** + + Prints an "DEBUG" level message to stdout with the timestamp of the occurrence. ### Special Logging Abilities From 5fe3587b698c7e92117433dde472fc556b430125 Mon Sep 17 00:00:00 2001 From: Akhil Jalagam Date: Mon, 5 Nov 2018 13:00:13 +0530 Subject: [PATCH 2/2] Update log4bash.sh --- log4bash.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/log4bash.sh b/log4bash.sh index 8c17690..8174752 100755 --- a/log4bash.sh +++ b/log4bash.sh @@ -16,19 +16,20 @@ SCRIPT_BASE_DIR="$(cd "$( dirname "$0")" && pwd )" # This should probably be the right way - didn't have time to experiment though # declare -r INTERACTIVE_MODE="$([ tty --silent ] && echo on || echo off)" -declare -r INTERACTIVE_MODE=$([ "$(uname)" == "Darwin" ] && echo "on" || echo "off") +# declare -r INTERACTIVE_MODE=$([ "$(uname)" == "Darwin" ] && echo "on" || echo "off") +INTERACTIVE_MODE=on #-------------------------------------------------------------------------------------------------- # Begin Help Section -HELP_TEXT="" +# HELP_TEXT="" # This function is called in the event of an error. # Scripts which source this script may override by defining their own "usage" function -usage() { - echo -e "${HELP_TEXT}"; - exit 1; -} +# usage() { +# echo -e "${HELP_TEXT}"; +# exit 1; +# } # End Help Section #--------------------------------------------------------------------------------------------------