I am creating a simple Changelog lib in CodeIgniter that will basically log a post every time someone adds, removes, modifies or posts a blog post. I will register messages in files in batches of 300. Thus, every 301st message is sent to a new file. At first I wanted to write logs to simple .log files, but then I had the idea to actually style this thing, and I had to separate each “attribute” of each message (that is: user, message, type of log, etc. ) So .log files are out of the question since retrieving the information will be painful.
What is the most suitable format for such a task? I have already excluded MySQL and XML because they are too heavy (especially considering that the log files will not exceed 300 lines). I suggested YAML vs JSON vs CSV in the title, but is there an even better alternative?
source
share