Unified arguments parsing in log.js.