@strapi/logger
Advanced tools
Comparing version 0.0.0-4fc90398602f to 0.0.0-8581854cb3
'use strict'; | ||
const prettyPrint = require('./pretty-print'); | ||
const levelFilter = require('./level-filter'); | ||
module.exports = { | ||
prettyPrint, | ||
levelFilter, | ||
prettyPrint: require('./pretty-print'), | ||
levelFilter: require('./level-filter'), | ||
}; |
@@ -6,3 +6,3 @@ 'use strict'; | ||
module.exports = (...levels) => { | ||
return format((info) => (levels.some((level) => info.level.includes(level)) ? info : false))(); | ||
return format(info => (levels.some(level => info.level.includes(level)) ? info : false))(); | ||
}; |
@@ -5,5 +5,7 @@ 'use strict'; | ||
module.exports = format((info) => { | ||
module.exports = format(info => { | ||
if (info instanceof Error) { | ||
return { ...info, message: `${info.message}${info.stack ? `\n${info.stack}` : ''}` }; | ||
return Object.assign({}, info, { | ||
message: `${info.message}${info.stack ? `\n` + info.stack : ''}`, | ||
}); | ||
} | ||
@@ -10,0 +12,0 @@ |
{ | ||
"name": "@strapi/logger", | ||
"version": "0.0.0-4fc90398602f", | ||
"version": "0.0.0-8581854cb3", | ||
"description": "Strapi's logger", | ||
@@ -41,3 +41,3 @@ "homepage": "https://strapi.io", | ||
}, | ||
"gitHead": "4fc90398602f4a07f8ae8f04968c48d669992707" | ||
"gitHead": "8581854cb3c817ae42b829ea686a1b0702ed9245" | ||
} |
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
5033