Skip to content

Commit

Permalink
Update logger
Browse files Browse the repository at this point in the history
  • Loading branch information
akatrevorjay committed Apr 28, 2012
1 parent 24ad4bf commit 56c9a3c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions bashism.d/output/logger.sh
Expand Up @@ -45,16 +45,18 @@ if [[ -z "${__BASHISM[path]}" ]]; then
fi
log="${log#*## }"
fi


case "$BASHISM_OUTPUT_LEVEL" in
e|info|debug|warning|error|death) ;;
*) BASHISM_OUTPUT_LEVEL="info" ;;
esac

if [[ $pr_nl > 0 ]]; then
for i in `seq 1 $pr_nl`; do "$BASHISM_OUTPUT_LEVEL"; done
pr_nl=0
fi

case "$BASHISM_OUTPUT_LEVEL" in
e|info|debug|warning|error|death) "$BASHISM_OUTPUT_LEVEL" "$log" ;;
#*) e "$log" ;;
esac
"$BASHISM_OUTPUT_LEVEL" "$log"
done

$b.exit 0
Expand Down

0 comments on commit 56c9a3c

Please sign in to comment.