Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fwsp-logger

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fwsp-logger - npm Package Compare versions

Comparing version 0.3.0 to 0.3.2

cleanup.js

22

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc