PHP Utils for couchdb logger