http://mail4us.net/dev/plugins/dblog.zip
 
May I kindly ask the professionals to review the plugin.
 
I noticed better performance if logging to database instead of logging to file.
In addition I disabled apache logging for roundcube vhost (rcube access is logged too: see callback hook startup).
 
Missing:
 
#1- Database update scripts for others than MySQL
#2- Export log table by FTP to support Round Robin installations.
#3- May be it's better to export as sql script ?
 
Regards,
Roland