摘要: 配置File Transport winston.add(winston.transports.File, options) The File transport should really be the 'Stream' transport since it will accept any Wri 阅读全文
posted @ 2016-10-20 14:15 jay- 阅读(455) 评论(0) 推荐(0)
摘要: Further Reading 延伸阅读 Events and Callbacks in Winston winston的事件和回调 Each instance of winston.Logger is also an instance of an EventEmitter. A log event 阅读全文
posted @ 2016-10-20 14:05 jay- 阅读(1404) 评论(0) 推荐(0)
摘要: 上次讲到 Exceptions 例外 Handling Uncaught Exceptions with winston 使用winston处理未捕获的异常(这个如果对于异步,我不是很喜欢用) 使用winston,可以从进程捕获和记录uncaughtException事件。 有两种不同的方式通过默认 阅读全文
posted @ 2016-10-20 10:16 jay- 阅读(2454) 评论(0) 推荐(0)