Python-like logging on PHP