add logger and logs