align.js 372 B

1234567891011121314
  1. 'use strict';
  2. var format = require('./format');
  3. /*
  4. * function align (info)
  5. * Returns a new instance of the align Format which adds a `\t`
  6. * delimiter before the message to properly align it in the same place.
  7. * It was previously { align: true } in winston < 3.0.0
  8. */
  9. module.exports = format(function (info) {
  10. info.message = '\t' + info.message;
  11. return info;
  12. });