New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@thebosco/the-bosco-server-logger

Package Overview
Dependencies
Maintainers
6
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thebosco/the-bosco-server-logger - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

21

index.js

@@ -5,7 +5,26 @@ 'use strict'

const moment = require('moment')
const LEVEL = Symbol.for('level')
class Logger {
constructor({papertrailHostname, defaultLevel, format, levels, colors} = {}) {
constructor({
papertrailHostname,
defaultLevel,
format,
levels,
colors,
excludedLevels = []
} = {}) {
defaultLevel = defaultLevel || 'debug'
/**
* Log only the messages the match `level`.
*/
function filterOnly() {
return winston.format(function (info) {
if (!excludedLevels.includes(info[LEVEL])) {
return info
}
})()
}
this.format = format || winston.format.combine(
filterOnly(),
winston.format.colorize({message: true, levels: true}),

@@ -12,0 +31,0 @@ winston.format.timestamp(),

2

package.json
{
"name": "@thebosco/the-bosco-server-logger",
"version": "1.0.4",
"version": "1.0.5",
"description": "Server-side logging package",

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

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