creating a logger and added log messages