add functionalities to logger.js