improve logging
This commit is contained in:
parent
e0833c7a93
commit
09386c0179
1 changed files with 1 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
|||
log () {
|
||||
m_time=`date "+%F %T"`
|
||||
echo $m_time" :: $scriptName :: $scriptVersion :: "$1
|
||||
echo $m_time" :: $scriptName :: $scriptVersion :: "$1 >> /config/logs/$scriptName.txt
|
||||
echo $m_time" :: $scriptName :: $scriptVersion :: "$1 2>&1 | tee -a /config/logs/$scriptName.txt
|
||||
}
|
||||
|
||||
logfileSetup () {
|
||||
|
|
Loading…
Reference in a new issue