文件名称:winston-child:促进Winston记录器的元对象继承
文件大小:6KB
文件格式:ZIP
更新时间:2024-05-19 02:21:21
CoffeeScript
温斯顿孩子 促进记录器的元对象继承。 安装 npm install winston-child 使用范例 var winston = require('winston'); var WinstonChild = require('winston-child').WinstonChild; var logger = new winston.Logger({ transports: [ new winston.transports.Console() ] }); logger = new WinstonChild(logger, {foo: 'bar'}); logger.info('hello!'); // info: hello! foo=bar logger.info('context!', {local: 123}); // info: context! local=
【文件预览】:
winston-child-master
----.gitignore(13B)
----README.md(3KB)
----test()
--------mocha.opts(94B)
--------winston-child.spec.coffee(1KB)
----examples()
--------winston-child-example.js(560B)
----LICENSE(1KB)
----package.json(1015B)
----src()
--------winston-child.coffee(331B)
----.travis.yml(37B)
----lib()
--------winston-child.js(684B)