improved: add pretty logger format in logger.js