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

@coozzy/logger

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coozzy/logger - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

8

index.js
const winston = require('winston');
const requestId = require('@coozzy/request-id');

@@ -6,3 +7,3 @@ const logger = winston.createLogger({

format: winston.format.combine(
winston.format((info) => {
winston.format(info => {
if (info.level === 'warn') {

@@ -17,2 +18,7 @@ info.severity = 'warning';

})(),
winston.format(info => {
info.requestId = requestId.getRequestId() || undefined;
return info;
})(),
winston.format.json()

@@ -19,0 +25,0 @@ ),

2

package.json
{
"name": "@coozzy/logger",
"version": "1.0.1",
"version": "1.1.0",
"description": "Logging library based on winston",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -13,3 +13,7 @@ # coozzy-logger

## Request ID
It uses the `@coozzy/request-id` dependency to add the requestId on each log entry.
## Dependencies
- [winston](https://www.npmjs.com/package/winston)
- [@coozzy/request-id](https://www.npmjs.com/package/@coozzy/request-id)
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