Improve PHP logging