Skip to content

Commit

Permalink
Merge pull request #215 from gorangajic/add-ms-as-last-param
Browse files Browse the repository at this point in the history
move ms to the last place
  • Loading branch information
thebigredgeek authored Oct 28, 2016
2 parents d188464 + dafc16e commit 820f351
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions node.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,21 @@ exports.formatters.o = exports.formatters.O = function(v) {
*/

function formatArgs() {
var args = arguments;
var args = [];
var len = arguments.length;
var useColors = this.useColors;
var name = this.namespace;
for (var i = 0; i < len; i++) {
args.push(arguments[i]);
}

if (useColors) {
var c = this.color;

args[0] = ' \u001b[3' + c + ';1m' + name + ' '
+ '\u001b[0m'
+ args[0] + '\u001b[3' + c + 'm'
+ ' +' + exports.humanize(this.diff) + '\u001b[0m';
+ args[0];
args.push('\u001b[3' + c + 'm+' + exports.humanize(this.diff) + '\u001b[0m');
} else {
args[0] = new Date().toUTCString()
+ ' ' + name + ' ' + args[0];
Expand Down

0 comments on commit 820f351

Please sign in to comment.