senecajs / seneca-pino-logger

A pino logging adaptor for seneca
Other
4 stars 9 forks source link

Pino uses an unsupported legacy callback #15

Open chippawah opened 8 years ago

chippawah commented 8 years ago

The error message: Message: seneca: The plugin pino uses an unsupported legacy callback to indicate plugin definition is complete: function pino(opts, stream) { ... }. The correct format is: function(options) { ... }. My setup:

seneca = require 'seneca'
pino = require('pino')()
options =
  tag: 'system'
  timeout: 12000
  legacy:
    logging: false
    'pino-logger':
      instance: pino
seneca = seneca options
  .use 'pino'

Am I setting this up incorrectly?

dgonzalez commented 8 years ago

Would you be able to provide a code fragment that crashes so I can see exactly where the problem is?

I've seen that error before but I cannot reproduce it.