@libj/logger
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -7,2 +7,3 @@ "use strict"; | ||
var isType_1 = require("../common/isType/isType"); | ||
var TIMESTAMP_PLACEHOLDER = '%a'; | ||
var BaseLogger = /** @class */ (function () { | ||
@@ -33,2 +34,5 @@ function BaseLogger(options) { | ||
if (this.options.timestamp) { | ||
if (finalMessage.indexOf(TIMESTAMP_PLACEHOLDER) === -1) { | ||
finalMessage = "[%a] " + finalMessage; | ||
} | ||
var date = typeof this.options.timestamp === 'function' | ||
@@ -35,0 +39,0 @@ ? this.options.timestamp() |
@@ -6,3 +6,3 @@ { | ||
"name": "@libj/logger", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Generic logger", | ||
@@ -29,3 +29,3 @@ "author": "Sergey Poskachey <seregynp@gmail.com>", | ||
], | ||
"gitHead": "abb6cd4a4563aea2bfea37e20c86163262b09f93" | ||
"gitHead": "84aa578918ae6ff5da39a3630b96cd6a2fa33d32" | ||
} |
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
17746
252