@jalik/logger
Advanced tools
Comparing version 3.1.3 to 3.1.4
@@ -23,3 +23,3 @@ "use strict"; | ||
var out = "".concat(new Date(timestamp).toISOString(), " ").concat(level.toUpperCase(), " [").concat(logger, "] : ").concat(message); | ||
if (context) { | ||
if (context && Object.keys(context).length > 0) { | ||
out += " ; ".concat(JSON.stringify(context)); | ||
@@ -26,0 +26,0 @@ } |
@@ -9,3 +9,3 @@ /* | ||
let out = `${new Date(timestamp).toISOString()} ${level.toUpperCase()} [${logger}] : ${message}`; | ||
if (context) { | ||
if (context && Object.keys(context).length > 0) { | ||
out += ` ; ${JSON.stringify(context)}`; | ||
@@ -12,0 +12,0 @@ } |
{ | ||
"name": "@jalik/logger", | ||
"version": "3.1.3", | ||
"version": "3.1.4", | ||
"description": "A logging utility to log messages to anywhere.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
57748