@falsy/logger
Advanced tools
Comparing version 3.0.5 to 3.0.6
@@ -91,9 +91,7 @@ "use strict"; | ||
*/ | ||
const getTransports = (config) => (0, fputils_1.pipe)([ | ||
new winston_1.transports.Console({ | ||
level: config.level || 'debug', | ||
format: winston_1.format.combine(winston_1.format.colorize(), winston_1.format.timestamp(), winston_1.format.json(), customFormat), | ||
handleExceptions: true, | ||
}), | ||
], (0, utils_1.appendWhen)(() => new winston_daily_rotate_file_1.default({ | ||
const getTransports = (config) => (0, fputils_1.pipe)([], (0, utils_1.appendWhen)(() => new winston_1.transports.Console({ | ||
level: config.level || 'debug', | ||
format: winston_1.format.combine(winston_1.format.colorize(), winston_1.format.timestamp(), winston_1.format.json(), customFormat), | ||
handleExceptions: true, | ||
}), config.enableConsoleLog), (0, utils_1.appendWhen)(() => new winston_daily_rotate_file_1.default({ | ||
level: config.level || 'info', | ||
@@ -100,0 +98,0 @@ dirname: config.directory, |
@@ -103,2 +103,7 @@ import { Optional } from 'fputils'; | ||
syslogPort?: number; | ||
/** | ||
* Pokud false, tak logger nebude logovat do console. | ||
* Užitečné pro šetření místa na disku pokud už loguji do souboru. | ||
*/ | ||
enableConsoleLog?: boolean; | ||
} |
{ | ||
"name": "@falsy/logger", | ||
"version": "3.0.5", | ||
"version": "3.0.6", | ||
"packageManager": "yarn@3.0.1", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
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
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
27521
559
1