refactor logger interface
fix php 5.3