log_info() { # Usage: log_info "this is the info log message" NOW=$(date +"%Y-%m-%d %H:%M:%S") echo "${NOW} [INFO] $*" } use $* instead of $1
log_info() {
# Usage: log_info "this is the info log message"
NOW=$(date +"%Y-%m-%d %H:%M:%S")
echo "${NOW} [INFO] $*"
}
use $* instead of $1