oop php logging class