@falsy/logger
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -75,2 +75,7 @@ "use strict"; | ||
})); | ||
it('should not log debug when log level is info ', () => __awaiter(void 0, void 0, void 0, function* () { | ||
logger().debug(undefined, 'function-2', 'my message'); | ||
const log = yield readLog(); | ||
expect(log).toEqual(['']); | ||
})); | ||
it('logs error', () => __awaiter(void 0, void 0, void 0, function* () { | ||
@@ -77,0 +82,0 @@ logger().error('tr1', 'function-2', 'my message', { message: 'System threw error' }); |
@@ -85,3 +85,3 @@ "use strict"; | ||
new winston_1.transports.Console({ | ||
level: 'debug', | ||
level: config.level || 'debug', | ||
format: winston_1.format.combine(winston_1.format.colorize(), winston_1.format.timestamp(), winston_1.format.json(), customFormat), | ||
@@ -88,0 +88,0 @@ handleExceptions: true, |
{ | ||
"name": "@falsy/logger", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"packageManager": "yarn@3.0.1", | ||
@@ -25,3 +25,2 @@ "main": "build/index.js", | ||
"@types/winston": "^2.4.4", | ||
"@types/winston-syslog": "^2.4.0", | ||
"jest": "^27.5.1", | ||
@@ -28,0 +27,0 @@ "jest-junit": "^13.0.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9
23805
14
500
1