In this example by clicking any menu items, it will insert a record in the log table.