User access logging

hi guys…

i would like to logged all user activities on my system.

i believe the best way to do this is put your codes on the Application
Controller since this is always called on all controllers.

Do you have any idea how to get the following:

the links pressed, the parameters passed from page to page, the sql
executed.

id like the values logged by the logger object.

thanks.