TomFrost / Bristol

Insanely configurable logging for Node.js
MIT License
113 stars 19 forks source link

Dates do not get passed to formatter #47

Closed jeffijoe closed 6 years ago

jeffijoe commented 6 years ago
const logger = new Bristol()
logger.addTarget(function() {}).withFormatter(function() {
  console.log(arguments[3])
})
logger.error('hey ho', { here: 'we go' }, 123, new Date())

This is what I see in the console:

    [ 'hey ho',
      123,
      { file: '/Users/jeff/Projects/bristol-stackdriver/src/__tests__/index.test.ts',
        line: '20',
        here: 'we go' } ]

Am I missing something? 😄