refresh log

This commit is contained in:
nap.liu
2022-12-19 14:40:57 +08:00
parent 6aa13b1328
commit 25bc6319af
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ logfile="/tmp/ffmpeg.log"
######################### #########################
function log() { function log() {
echo "[$(date '+%Y-%m-%d %H:%M:%S')] [$pid] [$1] $2" >> $logfile echo "[$(date '+%Y-%m-%d %H:%M:%S')] [$pid] [$1] $2" > $logfile
} }
function newline() { function newline() {
echo "" >> $logfile echo "" >> $logfile

View File

@@ -13,7 +13,7 @@ logfile="/tmp/gst-launch-1.0.log"
######################### #########################
function log() { function log() {
echo "[$(date '+%Y-%m-%d %H:%M:%S')] [$pid] [$1] $2" >> $logfile echo "[$(date '+%Y-%m-%d %H:%M:%S')] [$pid] [$1] $2" > $logfile
} }
function newline() { function newline() {
echo "" >> $logfile echo "" >> $logfile