Modify logging.js