added logger
added time to logger