Changelog file: YAML vs JSON vs CSV

Posted by Aziz Light on Stack Overflow See other posts from Stack Overflow or by Aziz Light
Published on 2010-02-11T17:59:57Z Indexed on 2010/03/20 13:21 UTC
Read the original article Hit count: 633

Filed under:
|
|
|
|

Hello everybody. I am creating a simple Changelog lib in CodeIgniter that will basically log a message everytime someone adds, deletes, changes or publish a blog post. I will log messages in files by batches of 300. So every 301st message will go in a new file. At first I wanted to write the logs to simple .log files but then I got the idea to actually style the thing and I had to seperate each "attribute" of each message (ie: the user, the message, the type of the log, etc.). So .log files are out of the question since extracting the info would be a pain.

What is the most appropriate format for such a task? I already ruled out MySQL and XML because they are too heavy (especially considering that the log files won't exceed (about) 300 lines). I suggested YAML vs JSON vs CSV in the title, but is there yet a better alternative?

© Stack Overflow or respective owner

Related posts about php

Related posts about logging