Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am building a custom app in WordPress, so I need some means of logging my events. I searched and found this plugin - http://wordpress.org/extend/plugins/wp-logs/ which looks very convenient to use. It uses database to store logs and can display them in the backend itself.

Another option for me is to learn WP filesystem (something which I haven't tried yet) and use it to write logs to file on disk. What do you think would be best considering the tradeoff between performance & convenience?

Database write is equal to I/O write + some extra work. Thoughts?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

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...).

share|improve this answer
    
Thanks! I will go with the plugin. –  Ashfame Apr 26 '11 at 16:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.