Detailed, real-time logs in PHP and MongoDB