added logger singleton class

Added loggerClass which is a singleton logger class.