# setupSecond method use redirect of standard output to your log file.
log='logger -t logger-id'
# usage
$log "log message..."
# setup
function log() {
echo "`date +'%Y-%m-%d %H:%M:%S'` [$$] $1" >> script.log
}
# usage
log "log message..."
Technology and process fine points, notes and thoughts. Public blog of Whirix web development company from Barnaul, Russia.
# setupSecond method use redirect of standard output to your log file.
log='logger -t logger-id'
# usage
$log "log message..."
# setup
function log() {
echo "`date +'%Y-%m-%d %H:%M:%S'` [$$] $1" >> script.log
}
# usage
log "log message..."
0 comments:
Post a Comment