Added log handler writing to GridFS