Adds logger functionality