storing the log id in table

Hi ,

we want to store the log in id in table , when record is inserting and updating .Please let us know what is the procedure.

Regards,
Hanumanth.