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

@qawolf/logger

Package Overview
Dependencies
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qawolf/logger - npm Package Compare versions

Comparing version 0.4.0 to 0.4.3

lib/Logger.d.ts

4

lib/index.d.ts

@@ -1,2 +0,2 @@

import winston from "winston";
export declare const logger: winston.Logger;
import { Logger } from "./Logger";
export declare const logger: Logger;
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const winston_1 = __importDefault(require("winston"));
const config_1 = require("@qawolf/config");
const transports = [];
if (config_1.CONFIG.logPath) {
transports.push(new winston_1.default.transports.File({
filename: `${config_1.CONFIG.logPath}/${Date.now()}.log`,
level: config_1.CONFIG.logLevel || "debug"
}));
}
else {
transports.push(new winston_1.default.transports.Console({
level: config_1.CONFIG.logLevel || "error",
format: winston_1.default.format.combine(winston_1.default.format.colorize(), winston_1.default.format.simple())
}));
}
exports.logger = winston_1.default.createLogger({
transports
});
const Logger_1 = require("./Logger");
exports.logger = new Logger_1.Logger();
//# sourceMappingURL=index.js.map
{
"name": "@qawolf/logger",
"description": "qawolf logger (node only)",
"version": "0.4.0",
"version": "0.4.3",
"license": "BSD-3.0",

@@ -23,6 +23,6 @@ "main": "./lib/index.js",

"dependencies": {
"@qawolf/config": "^0.4.0",
"@qawolf/config": "^0.4.3",
"winston": "^3.2.1"
},
"gitHead": "a0a2411b4e62470aea6d556082385f7df832cc80"
"gitHead": "0b18bbd752ba38f10abe9f8b4230856df70cc1de"
}

@@ -1,27 +0,4 @@

import winston from "winston";
import { CONFIG } from "@qawolf/config";
import { Logger } from "./Logger";
const transports = [];
if (CONFIG.logPath) {
transports.push(
new winston.transports.File({
filename: `${CONFIG.logPath}/${Date.now()}.log`,
level: CONFIG.logLevel || "debug"
})
);
} else {
transports.push(
new winston.transports.Console({
level: CONFIG.logLevel || "error",
format: winston.format.combine(
winston.format.colorize(),
winston.format.simple()
)
})
);
}
export const logger = winston.createLogger({
transports
});
// export singleton
export const logger = new Logger();

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