Options for logging events in WordPress

I would prefer to use WP-Logs plugin because its code looks pretty well and you will not waste so much time writing something completely from the scratch.

I also store data in the database more likely because I think database could be scaled more efficiently when needed. The another reason why I would prefer database is that the data could be accessed more easily by other plugins/APIs. From my point of view it’s more secure too (for me it’s easier to secure the database then the files on the FTP or in case when you need to access it from the external source…).