combine.js 290 B

1234567891011121314
  1. const { format } = require('../');
  2. const { combine, timestamp, label } = format;
  3. const labelTimestamp = combine(
  4. label({ label: 'right meow!' }),
  5. timestamp()
  6. );
  7. const info = labelTimestamp.transform({
  8. level: 'info',
  9. message: 'What time is the testing at?'
  10. });
  11. console.dir(info);