#2 fix logger constructor for php5.2