Skip to content
This repository has been archived by the owner on Aug 7, 2021. It is now read-only.

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
wvivianjia committed May 6, 2015
2 parents 3a2dcb9 + 0e511dd commit 70f016a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Version 0.1.14
--------------
Release Date: 5 May 2015
* Add timestamp to the log entries.

Version 0.1.13
--------------
Release Date: 1 May 2015
Expand Down
3 changes: 2 additions & 1 deletion lib/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,9 @@ Logger.prototype.log = function(level, message, error) {
}

var correlationId = this._logContext.correlationId || '<no correlation id>';
var timeStamp = new Date().toUTCString();

var formattedMessage = correlationId + ' - ' + this._componentName + ': ' + LEVEL_STRING_MAP[level] + ' ' + message;
var formattedMessage = timeStamp + ':' + correlationId + ' - ' + this._componentName + ': ' + LEVEL_STRING_MAP[level] + ' ' + message;
if (error) {
formattedMessage += '\nStack:\n' + error.stack;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"type": "git",
"url": "https://github.com/MSOpenTech/azure-activedirectory-library-for-nodejs.git"
},
"version": "0.1.13",
"version": "0.1.14",
"description": "Windows Azure Active Directory Client Library for node",
"keywords": [ "node", "azure", "AAD", "adal", "adfs", "oauth" ],
"main": "./lib/adal.js",
Expand Down

0 comments on commit 70f016a

Please sign in to comment.