logging.js:用于nodejsiojs的基于流的日志记录模块

时间:2021-05-07 23:01:22
【文件属性】:
文件名称:logging.js:用于nodejsiojs的基于流的日志记录模块
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-07 23:01:22
JavaScript Logging.js 用于nodejs / iojs的基于流的日志记录模块。 安装 npm install logging . js 例子 var logging = require ( 'logging.js' ) , log = logging . get ( 'mylogger' ) ; log . addRule ( { name : 'stdout' , stream : process . stdout } ) ; log . info ( 'logging from %(from)s to %(to)s' , { from : 'mylogger' , to : 'stdout' } ) // => 2015-04-25 14-28-58,548 info mylogger[8274]: logging from mylogger to stdout 记录级别 共有5个
【文件预览】:
logging.js-master
----.gitignore(32B)
----README.md(4KB)
----package.json(312B)
----index.js(9KB)

网友评论