A simple php class for error logging using singleton pattern