add a logger class