Function

From wikieduonline
Jump to navigation Jump to search

Bash

log() {
	 echo "[$(date --rfc-3339=seconds)]: $*"
}


error() {
  	 echo "[$(date --rfc-3339=seconds)]: $*"
 	 exit 1
}

Python

See also