Added a logger class to print log messages to console and prepended log messages with time stamp