add setLogger method