Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joelee/winston-spark
Cisco Spark transport for Winston logging library for node.js
https://github.com/joelee/winston-spark
Last synced: about 2 months ago
JSON representation
Cisco Spark transport for Winston logging library for node.js
- Host: GitHub
- URL: https://github.com/joelee/winston-spark
- Owner: joelee
- License: mit
- Created: 2017-04-28T15:44:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-04-13T16:25:46.000Z (over 2 years ago)
- Last Synced: 2024-09-09T10:51:40.827Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# winston-spark
[Cisco Spark][0] transport for [Winston][1][![NPM](https://nodei.co/npm/winston-spark.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/winston-spark/)
[![npm](https://img.shields.io/npm/v/winston-spark.svg)](https://www.npmjs.com/package/winston-spark) [![dependencies Status](https://david-dm.org/joelee/winston-spark/status.svg)](https://david-dm.org/joelee/winston-spark) [![Known Vulnerabilities](https://snyk.io/test/github/joelee/winston-spark/badge.svg)](https://snyk.io/test/github/joelee/winston-spark) [![GitHub issues](https://img.shields.io/github/issues/joelee/winston-spark.svg)](https://github.com/joelee/winston-spark/issues)
## Installation
``` sh
$ npm install winston
$ npm install winston-spark
```## Usage
``` js
var winston = require('winston');
require('winston-spark');var options = {
accessToken: '***Your Spark Access Token***',
roomId: '***Spark Room Id***'
};winston.add(winston.transports.SparkLogger, options);
```Valid Options are as the following:
* __accessToken__ Your Spark Access Token. *[required]*
* __roomId__ Spark Room Id. *[required]*
* __level__ Log Level (default: info)
* __hideMeta__ Hide MetaData flag (default: false)## License
The MIT License (MIT)Copyright (C) 2017 Joseph Lee
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
---
## Contributor(s)
[Joseph Lee](https://github.com/joelee) [![Twitter Follow](https://img.shields.io/twitter/follow/joe_lee.svg?style=social&label=Follow)](https://twitter.com/joe_lee)
[0]: http://ciscospark.com
[1]: https://github.com/flatiron/winston