@opuscapita/logger
Advanced tools
Comparing version 1.4.0 to 1.5.0
13
index.js
@@ -448,5 +448,16 @@ 'use strict' | ||
String.prototype.slice.call(obj.level, 0, 5).padEnd(5), | ||
String.prototype.slice(obj.name, 0, 30).padEnd(30), | ||
String.prototype.slice.call(obj.name, 0, 30).padEnd(30), | ||
obj.message); | ||
break; | ||
case 'ci': | ||
Logger.DefaultConfig.formatter = (obj)=>util.formatWithOptions( | ||
_cfg.formatOptions, | ||
'%s|%s|%s|%s|%s|%s', | ||
String.prototype.slice.call(obj.timestamp || '', 11, 23), | ||
String.prototype.slice.call(obj.level || '', 0, 5).padEnd(5), | ||
String.prototype.slice.call(obj.name || '', 0, 30).padEnd(30), | ||
String.prototype.slice.call(obj.correlationId || '', -10).padEnd(10), | ||
String.prototype.slice.call(obj.requestUri || '', -30).padEnd(30), | ||
obj.message); | ||
break; | ||
default: | ||
@@ -453,0 +464,0 @@ _error.write(util.format('Unsupported formatter %s\s', cfgFile.default.formatter)); |
{ | ||
"name": "@opuscapita/logger", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "Unified logging component for OpusCapita Andariel platform.", | ||
@@ -5,0 +5,0 @@ "main": "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
22325
442