Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[fix] Remove left-over references to `winston` in favor of `cliff.log…

…ger`
  • Loading branch information...
commit 53d2ee70cd901f3e43129ec68a10fa09836a0d31 1 parent 2c795b1
@indexzero indexzero authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 lib/cliff.js
View
16 lib/cliff.js
@@ -155,30 +155,30 @@ cliff.stringifyObjectRows = cliff.rowifyObjects = function (objs, properties, co
//
// ### function putRows (level, rows, colors)
-// #### @level {String} Log-level to use for winston
+// #### @level {String} Log-level to use
// #### @rows {Array} Array of rows to log at the specified level
// #### @colors {Array} Set of colors to use for the specified row(s) headers.
// Logs the stringified table result from `rows` at the appropriate `level` using
-// winston. If `colors` are supplied then use those when stringifying `rows`.
+// `cliff.logger`. If `colors` are supplied then use those when stringifying `rows`.
//
cliff.putRows = function (level, rows, colors) {
cliff.stringifyRows(rows, colors).split('\n').forEach(function (str) {
- winston.log(level, str);
+ logger.log(level, str);
});
};
//
// ### function putObjectRows (level, rows, colors)
-// #### @level {String} Log-level to use for winston
+// #### @level {String} Log-level to use
// #### @objs {Array} List of objects to create output for
// #### @properties {Array} List of properties to output
// #### @colors {Array} Set of colors to use for the headers
// Logs the stringified table result from `objs` at the appropriate `level` using
-// winston. If `colors` are supplied then use those when stringifying `objs`.
+// `cliff.logger`. If `colors` are supplied then use those when stringifying `objs`.
//
cliff.putObjectRows = function (level, objs, properties, colors) {
cliff.rowifyObjects(objs, properties, colors).split('\n').forEach(function (str) {
- winston.log(level, str);
+ logger.log(level, str);
});
};
@@ -205,7 +205,7 @@ cliff.putObject = function (/*obj, [rewriters, padding] */) {
function pad () {
for (var i = 0; i < padding / 2; i++) {
- winston.data('');
+ logger.data('');
}
}
@@ -226,7 +226,7 @@ cliff.putObject = function (/*obj, [rewriters, padding] */) {
line = rewriters[key](line);
}
});
- winston.data(line);
+ logger.data(line);
});
pad();
};
Please sign in to comment.
Something went wrong with that request. Please try again.