This should already be logged by default. I see lots of failed logins in my logs, without having activated anything special.
There is an option to log successful logins.
Is there also an option to log failed logins?
--
List info: http://lists.roundcube.net/users/
BT/86b78bab