Closed ebuckthal closed 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.
app._log
._log
.log
thanks for reporting, you're right - fixed in v3.0.2
v3.0.2
v3 doesn't expose app.log as the examples suggest.
index.js:
outputs:
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.