Event Logging

I am a newbie in Ruby on Rails.I want to log events from my rails
application to DB. I am using gem “audited-activerecord”, “~>
This is used for CRUD operations. But I want to use it in controllers
application login, logout & other things. How can I achieve this?