How to maintain a History table in AX 2009

Hi ,

I am Balamurgan,new for AX 2009 Development.We have developed Demand Forecasting Application for Manufacturing Industry,In this Application We need to maintain separate History Table,this table we need to store the userid ,ipaddress,button click process name(which button they clicked,button label name will be stored),what type loading wheather insert ,delete,Update.This will Generate as new Log report .