【文件属性】:
文件名称:winston-splunkstorm:用于 splunkstorm 的 Winston 传输
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-24 01:26:28
JavaScript
温斯顿-splunkstorm
在他们的 Splunk 强烈鼓励在日志中使用键值对。 这个插件获取消息和元数据散列,并从中创建一个键值结构化的字符串。
安装
npm install winston-splunkstorm
示例用法
var winston = require ( 'winston' ) ;
var splunkstorm = require ( 'winston-splunkstorm' ) ;
winston . add ( splunkstorm , {
apiKey : 'api-key' ,
projectId : 'project-id' ,
apiHostName : 'api-host-name'
} ) ;
winston . info ( { a : 'b' } ) ;
//output: 2013-12-09T07:10:4
【文件预览】:
winston-splunkstorm-master
----.gitignore(18B)
----package.json(918B)
----LICENSE.md(1KB)
----.travis.yml(67B)
----index.js(2KB)
----examples()
--------example.js(209B)
----README.md(1KB)
----tests()
--------tests.js(2KB)
----.npmignore(30B)