adding a logger