A set of basic functions for writing to logs in BASH.

Commenter Jul added:

Very useful, thanks! You also could add timestamp at the beginning of each logged line :

dte=`date +’%Y%m%d %H:%M:%S’`
echo -e “$dte $2″| …