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

@elastic.io/bunyan-logger

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elastic.io/bunyan-logger - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3-dev-y.0

14

lib/logger.js

@@ -12,6 +12,18 @@ 'use strict';

function errSerializerWithErrors(err) {
const output = bunyan.stdSerializers.err(err);
if (err.errors) {
// Mongoose collects all validation errors here so it useful to pass them
output.errors = err.errors;
}
return output;
}
const serializers = Object.create(bunyan.stdSerializers);
serializers.err = errSerializerWithErrors;
const log = bunyan.createLogger({
name: appName,
level: level,
serializers: bunyan.stdSerializers
serializers
});

@@ -18,0 +30,0 @@

2

package.json
{
"name": "@elastic.io/bunyan-logger",
"version": "0.0.2",
"version": "0.0.3-dev-y.0",
"description": "Logger for elastic.io platform based on Bunyan",

@@ -5,0 +5,0 @@ "main": "lib/logger.js",

Sorry, the diff of this file is not supported yet

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