added a logger example