@opuscapita/logger
Advanced tools
Comparing version 2.0.1 to 2.0.2
12
index.js
@@ -204,2 +204,3 @@ "use strict"; | ||
Array.prototype.slice.call(args, 1) | ||
// eslint-disable-next-line no-unused-vars | ||
).map(([k, v]) => util.formatWithOptions(_cfg.formatOptions, v)); | ||
@@ -237,2 +238,3 @@ //obj.message = util.formatWithOptions(_cfg.formatOptions, ...Array.prototype.slice.call(args)); | ||
*/ | ||
// eslint-disable-next-line no-unused-vars | ||
Logger.prototype.trace = function (message, payload) { | ||
@@ -250,2 +252,3 @@ this.onWrite(Logger.LogLevel.Trace, arguments); | ||
*/ | ||
// eslint-disable-next-line no-unused-vars | ||
Logger.prototype.debug = function (message, payload) { | ||
@@ -263,2 +266,3 @@ this.onWrite(Logger.LogLevel.Debug, arguments); | ||
*/ | ||
// eslint-disable-next-line no-unused-vars | ||
Logger.prototype.info = function (message, payload) { | ||
@@ -276,2 +280,3 @@ this.onWrite(Logger.LogLevel.Info, arguments); | ||
*/ | ||
// eslint-disable-next-line no-unused-vars | ||
Logger.prototype.warn = function (message, payload) { | ||
@@ -289,2 +294,3 @@ this.onWrite(Logger.LogLevel.Warning, arguments); | ||
*/ | ||
// eslint-disable-next-line no-unused-vars | ||
Logger.prototype.error = function (message, payload) { | ||
@@ -301,2 +307,3 @@ this.onWrite(Logger.LogLevel.Error, arguments); | ||
*/ | ||
// eslint-disable-next-line no-unused-vars | ||
Logger.prototype.except = function (message, payload) { | ||
@@ -314,2 +321,3 @@ this.onWrite(Logger.LogLevel.Exception, arguments); | ||
*/ | ||
// eslint-disable-next-line no-unused-vars | ||
Logger.prototype.fatal = function (message, payload) { | ||
@@ -327,2 +335,3 @@ this.onWrite(Logger.LogLevel.Fatal, arguments); | ||
*/ | ||
// eslint-disable-next-line no-unused-vars | ||
Logger.prototype.log = function (message, payload) { | ||
@@ -339,2 +348,3 @@ this.onWrite(this.config.level, arguments); | ||
*/ | ||
// eslint-disable-next-line no-unused-vars | ||
Logger.prototype.write = function (message, payload) { | ||
@@ -427,3 +437,3 @@ this.onWrite(this.config.level, arguments); | ||
const cfgFile = JSON.parse(data); | ||
function loadCfg(src) { | ||
const loadCfg = function(src) { | ||
if (!src) return {}; | ||
@@ -430,0 +440,0 @@ const dst = {}; |
{ | ||
"name": "@opuscapita/logger", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Unified logging component for OpusCapita Andariel platform.", | ||
@@ -9,3 +9,3 @@ "main": "index.js", | ||
"test:unit": "npx nyc --reporter=text --reporter=lcov mocha '*.test.js'", | ||
"test:integ": "npx nyc --reporter=text --reporter=lcov mocha 'test/**/*.spec.js'", | ||
"test:integ": "npx nyc --reporter=text --reporter=lcov mocha 'test/*.spec.js' test/formatters/formatters.spec.js", | ||
"test": "npm run test:integ", | ||
@@ -12,0 +12,0 @@ "test-coverage": "npx nyc --reporter=lcov mocha", |
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
30579
587