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

logger4node

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logger4node - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

package.json
{
"name": "logger4node",
"version": "1.0.3",
"version": "1.0.4",
"description": "",

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

@@ -11,2 +11,5 @@ export declare const enum LogSeverity {

};
export declare const DisplaySeverityMap: {
[key in LogSeverity]: string;
};
export declare function setLogLevel(logSeverity: LogSeverity): void;

@@ -13,0 +16,0 @@ export declare function setLogPattern(pattern: string): void;

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.Logger = exports.setLogSeverityPattern = exports.setLogPattern = exports.setLogLevel = exports.LogLevel = void 0;
exports.Logger = exports.setLogSeverityPattern = exports.setLogPattern = exports.setLogLevel = exports.DisplaySeverityMap = exports.LogLevel = void 0;
const util_1 = __importDefault(require("util"));

@@ -16,11 +16,8 @@ exports.LogLevel = {

};
const Color = {
severity: '\x1b[33m',
application: '\x1b[36m',
reset: '\x1b[0m',
verbose: '\x1b[37m',
info: '\x1b[35m',
warn: '\x1b[33m',
debug: '\x1b[34m',
error: '\x1b[31m', // Red
exports.DisplaySeverityMap = {
verbose: 'Verbose',
info: 'Info',
warn: 'Warn',
debug: 'Debug',
error: 'Error',
};

@@ -35,3 +32,3 @@ function generateMatchAndDoesNotMatchArray(input = '') {

operator = '-';
key = key.substr(1, key.length);
key = key.substring(1, key.length);
}

@@ -119,3 +116,3 @@ key = key.replace(/\*/g, '.*');

}
console.log(Color.severity, logSeverity, Color.application, this.name, Color[logSeverity], util_1.default.format(formatter, ...this.transformArgs(...args)), Color.reset);
console.log(exports.DisplaySeverityMap[logSeverity], this.name, util_1.default.format(formatter, ...this.transformArgs(...args)));
}

@@ -122,0 +119,0 @@ transformArgs(...args) {

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