NEW: logger.sh

This commit is contained in:
xpk 2020-03-04 17:40:08 +08:00
parent 4d773717fc
commit 66c008e2f4
Signed by: xpk
GPG Key ID: CD4FF6793F09AB86

4
sh/logger.sh Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
LOGFILE=/var/log/$1.log
MSG=`cat`
echo "$(date): $MSG" >> $LOGFILE