标签: javascript node.js winston
使用winston进行日志记录时,会在每行添加级别前缀:
const winston = require('winston'); const logger = new (winston.Logger)(); logger.info('line 1'); logger.debug('line 2'); /* output: info: line 1 debug: line 2 */
有没有办法使用关卡功能而不输出前缀?