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 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 #--------------------------------------------------------------------------------------------------