node.js 的log 套件也蠻多的, 例如winston. 不過我們今天要用的是log4js ... npm install log4js -save ... 接著就設定log level, 以及想要log 的資訊.
確定! 回上一頁