Make the logger an instance of the Logger class

in addition write the logfile in ini format