fwsp-logger
Advanced tools
Comparing version 0.3.0 to 0.3.2
{ | ||
"name": "fwsp-logger", | ||
"version": "0.3.0", | ||
"version": "0.3.2", | ||
"author": { | ||
@@ -23,18 +23,18 @@ "name": "Eric Adum", | ||
"dependencies": { | ||
"chokidar": "1.7.0", | ||
"elasticsearch": "13.2.0", | ||
"fast-json-parse": "1.0.2", | ||
"chokidar": "2.0.2", | ||
"elasticsearch": "14.1.0", | ||
"fast-json-parse": "1.0.3", | ||
"hydra-express-plugin": "0.0.1", | ||
"hydra-plugin": "0.0.1", | ||
"lodash": "4.17.4", | ||
"lodash": "4.17.5", | ||
"minimist": "1.2.0", | ||
"path": "0.12.7", | ||
"pino": "4.5.3", | ||
"pino-http": "2.6.1", | ||
"split2": "2.1.1" | ||
"pino": "4.13.0", | ||
"pino-http": "3.2.0", | ||
"split2": "2.2.0" | ||
}, | ||
"devDependencies": { | ||
"chai": "4.0.0", | ||
"eslint": "3.19.0", | ||
"mocha": "3.4.2" | ||
"chai": "4.1.2", | ||
"eslint": "4.18.1", | ||
"mocha": "5.0.1" | ||
}, | ||
@@ -41,0 +41,0 @@ "bin": { |
@@ -6,8 +6,6 @@ # Logger [![npm version](https://badge.fury.io/js/fwsp-logger.svg)](https://badge.fury.io/js/fwsp-logger) | ||
Provides a [pino](https://github.com/pinojs/pino) logger | ||
that ships its logs to elasticsearch via [pino-elasticsearch](https://github.com/pinojs/pino-elasticsearch). | ||
that ships its logs to elasticsearch, with rotating index support. | ||
## Usage | ||
Run `npm install -g pino-elasticsearch` to install the elasticsearch transport module. | ||
See [Configuration](https://github.com/flywheelsports/fwsp-logger#configuration) for details on the logger plugin config options. | ||
@@ -53,2 +51,6 @@ | ||
hydra.init(...); | ||
// use via hydra (recommended) | ||
hydra.log('info', 'some info'); | ||
hydra.log('error', 'just a message, no stack trace'); | ||
// or use directly - useful if you need a stack trace | ||
log.info('some info'); | ||
@@ -94,2 +96,3 @@ log.error({err: new Error('error with stack trace')}); | ||
| elasticsearch | Connection object for ElasticSearch | N | *none* | ||
| rotate | How often to rotate ES index `[daily\|monthly\|yearly]` | N | No rotation by default | ||
@@ -96,0 +99,0 @@ ## Testing |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25867
645
119
+ Addedansi-styles@3.2.1(transitive)
+ Addedanymatch@2.0.0(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedchokidar@2.0.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedelasticsearch@14.1.0(transitive)
+ Addedfast-json-parse@1.0.3(transitive)
+ Addedglob-parent@3.1.0(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-glob@3.1.04.0.3(transitive)
+ Addedlodash@4.17.5(transitive)
+ Addedpath-dirname@1.0.2(transitive)
+ Addedpino@4.13.0(transitive)
+ Addedpino-http@3.2.0(transitive)
+ Addedpino-std-serializers@1.2.0(transitive)
+ Addedpump@2.0.1(transitive)
+ Addedsplit2@2.2.0(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedupath@1.2.0(transitive)
- Removedanymatch@1.3.2(transitive)
- Removedarr-diff@2.0.0(transitive)
- Removedarray-unique@0.2.1(transitive)
- Removedbraces@1.8.5(transitive)
- Removedchokidar@1.7.0(transitive)
- Removedelasticsearch@13.2.0(transitive)
- Removedexpand-brackets@0.1.5(transitive)
- Removedexpand-range@1.8.2(transitive)
- Removedextglob@0.3.2(transitive)
- Removedfast-json-parse@1.0.2(transitive)
- Removedfilename-regex@2.0.1(transitive)
- Removedfill-range@2.2.4(transitive)
- Removedfor-own@0.1.5(transitive)
- Removedglob-base@0.3.0(transitive)
- Removedglob-parent@2.0.0(transitive)
- Removedis-dotfile@1.0.3(transitive)
- Removedis-equal-shallow@0.1.3(transitive)
- Removedis-extglob@1.0.0(transitive)
- Removedis-glob@2.0.1(transitive)
- Removedis-number@2.1.04.0.0(transitive)
- Removedis-posix-bracket@0.1.1(transitive)
- Removedis-primitive@2.0.0(transitive)
- Removedlodash@4.17.4(transitive)
- Removedmath-random@1.0.4(transitive)
- Removedmicromatch@2.3.11(transitive)
- Removedobject.omit@2.0.1(transitive)
- Removedparse-glob@3.0.4(transitive)
- Removedpino@4.5.3(transitive)
- Removedpino-http@2.6.1(transitive)
- Removedpreserve@0.2.0(transitive)
- Removedpump@1.0.3(transitive)
- Removedrandomatic@3.1.1(transitive)
- Removedregex-cache@0.4.4(transitive)
- Removedsplit2@2.1.1(transitive)
Updatedchokidar@2.0.2
Updatedelasticsearch@14.1.0
Updatedfast-json-parse@1.0.3
Updatedlodash@4.17.5
Updatedpino@4.13.0
Updatedpino-http@3.2.0
Updatedsplit2@2.2.0