使用log4js记录node日志;需要注意的是,每次重新启动node时,都会将日志清空; ... const log4js = require('log4js') ... maxLogSize: 10 * 1024 * 1024, // = 10Mb.
確定! 回上一頁