nodejs日志打印log4js

安装

npm install log4js

使用

var log4js = require(‘log4js‘);
var logger = log4js.getLogger();

logger.level = ‘info‘;

logger.debug(‘this is debug‘);
logger.info(‘this is info‘);
logger.warn(‘this is warn‘); 
logger.error(‘this is error‘); 

参考:

nodejs日志打印log4js

上一篇:leetcode2. 两数相加](https://leetcode-cn.com/problems/add-two-numbers/)


下一篇:.net Aspose.Words word插入表格