Format for writing a JSON log file?

You're not going to write a single JSON object per FILE, you're going to write a JSON object per LINE. Each line can then be parsed individually. You don't need to worry about trailing commas and have the whole set of objects enclosed by brackets, etc. See http://blog.nodejs.org/2012/03/28/service-logging-in-json-with-bunyan/ for a more detailed explanation of what this can look like.

Also check out Fluentd http://fluentd.org/ for a neat toolset to work with.

Edit: this format is now called JSONLines or jsonl as pointed out by @Mnebuerquo below - see http://jsonlines.org/