#
# logger functions
#			Shuu Yamaguchi <shuu@dotAster.com>
# $Id: func_log,v 1.2 2004/04/04 15:50:11 shuu Exp shuu $

if [ -n "$MURASAKI_FUNC_LOG" ];then
	return
fi
MURASAKI_FUNC_LOG=1

# $1: priority.facility
# $2: tag
# $3: message
log()
{
	logger -i -p $1 -t "$2" "$3"
}


# $1: command
confirm_cmd()
{
	which $1 >/dev/null 2>&1 
	if [ $? -ne 0 ];then
		log daemon.err murasaki.comfirm_command "$1 is not found"
		exit 1;
	fi
}
