shipharbor / merry

:ocean::ocean::sailboat::ocean::ocean: - cute streaming API framework
MIT License
312 stars 21 forks source link

app.log is not defined #24

Closed ebuckthal closed 7 years ago

ebuckthal commented 7 years ago

v3 doesn't expose app.log as the examples suggest.

index.js:

var merry = require('merry')
var app = merry()

app.log.info('look at the logs!')

outputs:

app.log.info('look at the logs!')
       ^

TypeError: Cannot read property 'info' of undefined

It appears it is only exposed via app._log. The easy fix would be to just rename ._log to .log, but I'm not sure what the intention is.

yoshuawuyts commented 7 years ago

thanks for reporting, you're right - fixed in v3.0.2