diff --git a/sh/logger.sh b/sh/logger.sh new file mode 100644 index 0000000..16bf5fd --- /dev/null +++ b/sh/logger.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +LOGFILE=/var/log/$1.log +MSG=`cat` +echo "$(date): $MSG" >> $LOGFILE