Improvements in logger.js