I want to log the name of rule, the problem :
How to get the rule name in XOM?
OR
Can I inject a code before execute the rule?
But i don't know, if the rule will use this BOM. The solution is in this link: http://pic.dhe.ibm.com/infocenter/dmanager/v8r0m1/index.jsp?topic=%2Fcom.ibm.wodm.dserver.rules.ref.res%2Fhtml%2Fapi%2Fhtml%2Filog%2Frules%2Fengine%2FIlrToolAdapter.html
Associate a ToolAdaptar and you can get a notification if a rule has been excuted. There are some functions that will be implemented. (an existing sample here)